Skip to reading
Buttons, Labels & Text Boxes

Translate the sentence, preserve its markers

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
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.

Source table from Translate the sentence, preserve its markers, page 16
English sourceA valid French translation
Good evening, @PlayerName.Bonsoir, @PlayerName.
Visitor: $$visitor_nameVisiteur : $$visitor_name
Score: @ScoreScore : @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.

Page 16 of 46Permalink
Go to page