Faith Forge LabsBrazil
EnglishPortuguês

A translated button needs the same action, not the same words

A Portuguese checkout can display fluent instructions while behaving differently from its English version. The fault may be in the code that interprets a control, rather than in the translation itself. If a visible phrase doubles as the internal name of an action, an ordinary editorial improvement can change what the software does.

This guide follows a fictional store’s delivery-address edit. All customers, items and checks are demonstration fixtures in an isolated environment. No purchase is submitted and no payment provider is contacted during the exercise.

Start with the action the customer intended

Draft D-18 contains variant V-4 and saved delivery address A-17. The customer reaches the review step and chooses “Editar endereço de entrega.” The intended result is an editable address section containing A-17, with the selected item retained.

Instead, the checkout opens its payment-method selection step. A-17 remains unchanged. There is no saved address correction, even though the customer activated a control that promised one. In the English comparison, “Edit delivery address” correctly reopens the address section.

The Portuguese reviewer confirms that the visible instruction describes the intended task. Replacing it with an English phrase would make the demonstration appear to work while giving up the language requirement. The investigation needs to explain why equivalent instructions produce different actions.

Inspect the decision made after activation

The click handler reads the control’s visible text. It recognizes the exact string “Edit delivery address”; every other value enters a default branch that advances to payment selection. The translated text is therefore treated as an unknown command, and the default performs an unrelated action.

The evidence is specific:

Check Fictional result
Portuguese visible label Correctly asks to edit delivery address
Handler comparison Recognizes only the English phrase
Branch selected after the Portuguese activation Advances to payment-method selection
Saved address and chosen item A-17 and V-4 are unchanged
English comparison Opens the expected address section

The observed wrong screen is not evidence of a completed payment or order. It shows that the interface selected the wrong branch. That distinction keeps the investigation grounded in what actually happened.

Separate editable language from the action identifier

The selected correction gives the control a stable action identifier, edit_delivery_address, independent of its displayed wording. Both language versions invoke that same intended action. A supported component property or a suitable HTML data attribute can carry the identifier; MDN’s data-attribute guidance explains the latter mechanism.

The action map explicitly recognizes supported commands. An absent or unknown identifier stops the transition and gives an appropriate recoverable explanation. It does not silently select payment, submission or another commercial action. Keeping a permissive default would preserve the dangerous assumption even after the Portuguese label was repaired.

This identifier organizes interface behavior. It is not an authorization token or permission to amend a stored order. Any operation that changes an authoritative record still needs the application’s appropriate access checks and supported process.

Complete the intended correction in the fixture

After the change, activating the Portuguese control opens the address section with A-17’s existing values. The customer changes the designated fictional field and uses the separate save action. The draft records address revision A-18, and the review screen presents that saved revision.

Variant V-4 and its selected quantity remain unchanged. No payment request or order submission is made as a side effect of opening or saving the address section. The reviewer checks those receiving and event records, rather than inferring the absence of side effects solely from what the screen shows.

The English version reaches the same edit and save operations. The Portuguese reviewer then approves the alternative label “Alterar endereço de entrega.” Changing that wording does not change the action identifier or behavior. The copy can improve without becoming an accidental code change.

Test the route that should stop

A separate fixture supplies the unrecognized identifier edit_delivery_adress. The checkout remains at the review step and explains that the edit action could not be opened. A-18 and V-4 remain intact. No payment screen, submit operation or substitute action is selected.

This is an intentionally malformed command in a private test, not an instruction to expose technical identifiers to customers. The customer needs a useful recovery route; the maintainer needs limited diagnostic evidence identifying the unsupported action.

The check also ensures that a disabled control does not become active merely because its label is translated. Language changes must preserve the relevant enabled state and action boundary.

Review the other ways a person activates the control

The fictional acceptance exercise covers pointer activation and the supported keyboard route. Both select the same intended command. The visible and accessible labels are reviewed together so a person is not asked to recognize one phrase while assistive technology exposes another.

That last issue has its own investigation in the Portuguese checkout review. It is separate from the dispatcher defect here: an accurate accessible name would not repair a handler that still interprets the wrong text as its command.

Keep language review connected to maintenance

Record the stable action, reviewed labels, intended result and comparison cases with the component. A future reviewer can change Portuguese wording while the developer can confirm that the action contract remains intact. Include a deliberate unknown-action case in the relevant regression review.

The store development service can scope this customer interaction, while ongoing care can maintain the agreed checks. Translation is part of the functioning journey: the customer should be able to act on the words they understand, and the software should preserve the action those words describe.