This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
localization [2017/06/04 15:03] – justin | localization [2017/09/06 11:14] – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
=====Translation Format===== | =====Translation Format===== | ||
- | In order to add support for multiple languages you will first need to create a spreadsheet containing any applicable text strings. As shown below, the header row (starting in the second column) should contain the locale code for each language that your game will support. Each row after that should contain a unique ID to identify the string (all uppercase) followed by each translation of the string. | + | In order to add support for multiple languages you will first need to create a spreadsheet containing any applicable text strings. [[https:// |
^ ^language1^language2^language3^ | ^ ^language1^language2^language3^ | ||
Line 17: | Line 17: | ||
</ | </ | ||
- | A simple example shown below contains | + | A simple example shown below contains |
- | ^ ^en^fr^ | + | {{: |
- | |GAME_TITLE|Example Game|Exemple de jeu| | + | |
- | |GREETING|Hello! My name is Justin.|Salut! Je m' | + | |
=====Importing Translations===== | =====Importing Translations===== | ||
- | Once you've populated your translations spreadsheet, | + | Once you've populated your translations spreadsheet, |
{{: | {{: | ||
Line 34: | Line 32: | ||
=====Using Translations===== | =====Using Translations===== | ||
+ | |||
+ | Once you have imported the translations into our project, you can reference them within dialogue or message text by using the placeholder syntax shown below (specifically, | ||
{{: | {{: | ||
+ | |||
+ | At game runtime, any occurrences of these placeholders will be replaced with the translated text string corresponding to the active language. | ||
=====Built-In Strings===== | =====Built-In Strings===== | ||
Line 62: | Line 64: | ||
|SAVE_GAME|Save Game|Sauvegarder| | |SAVE_GAME|Save Game|Sauvegarder| | ||
|CREDITS|Credits|Crédits| | |CREDITS|Credits|Crédits| | ||
+ | |INVENTORY|Inventory|Inventaire| | ||
+ | |REMAINING_USES|Remaining uses:| | | ||
+ | |UNLIMITED_USES|Unlimited uses| | | ||
+ | |RIGHT_CLICK_TO_USE|Right-click to use| | | ||
~~NOTOC~~ | ~~NOTOC~~ |