Translate the sentence, preserve its markers
On this page
Use Translate beside the authored Text field for the player-facing wording, or use the Game Translations workflow for the project. Keep the tokens exactly as written inside each translation.
| English source | A valid French translation |
|---|---|
| Good evening, @PlayerName. | Bonsoir, @PlayerName. |
| Visitor: $$visitor_name | Visiteur : $$visitor_name |
| Score: @Score | Score : @Score |
The game looks up the translated source text before replacing its tokens. Translate the sentence around the marker. Do not translate visitor_name into another variable ID, or change the case of @PlayerName.
Variables are not a translation system#
A visitor name entered by the player should remain that person's name. A whole instruction stored in objective is different: do not assume that replacing $$objective also performs a new translation lookup on the inserted String. For reusable game prose, plan where the translated sentence will live.
A fixed button such as Return to game should normally use the authored Text translation. Use a variable for genuinely changing information, such as a score, entered name or changing status.
Allow room for the result#
Keep buttons wide enough for longer translations, and give multiline feedback enough height. Test accented characters with the imported font. Include any @||@ or @//@ separator in the complete translated source when you use alternate wording.
The Text Box placeholder is ordinary authored guidance in this release. Do not assume that a variable or wildcard inside it will expand. Test the actual placeholder separately from a translated output label.
