Skip to reading
Game Translations

16. Let the player change language

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

There are two common routes: the built-in Options menu, or your own GUI language buttons.

Use the built-in Options menu#

1. Register the languages in Game Translations.

2. Translate the built-in menu labels you use.

3. Run the game and open its menu, then Options.

4. Choose Game Language.

5. Choose Voice Language, or Follow Game Language.

6. Click Apply Options.

7. Return to the game and check text and resources.

The built-in Apply Options saves player preferences. In a standalone build, those saved choices can be loaded on the next run. The embedded editor preview deliberately starts from authored defaults rather than loading the standalone player's existing preference file.

This is why an editor test and an old installed build can begin in different languages without a translation being lost.

Make a French button in a GUI#

1. Add a Button element to your language-selection GUI.

2. Give it a clear label, such as Français.

3. Select the button and open its Events tab.

4. Find Click, expand Additional Event Actions, and use Add Next Action to add Set Game Language.

5. Enter fr in Language Code.

6. Set Save Player Preference to true for a lasting player choice. Use false for a temporary test or a scene-specific change.

7. If needed, add the GUI-image refresh from chapter 8 after the language action.

8. Save the GUI and project, then test the button in the running game.

Page 38 of 50Permalink
Go to page