Initial game localization implementation #1448
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements a bare-bones localization framework, and demonstrates the concept using the Examine system.
This feature includes:
PR checklist
Pictures/Videos
("Steel Wall" viewed when French language is selected)
(This Floor Tile does not have localization data, so we inform user)
(Change your selected region via the dropdown near the Stamina Bar)
Testing
Play the game, hover over some of the objects in the default scene to see their name appear in English. Then change language to French or Portuguese, and do the same. Notice that they are different.
To view the localization tables in the editor, go to Windows > Asset Management > Localization Tables. In the Edit Table Collection tab, select the desired Table Collection (currently Tiles, Items or Misc). Tiles is the most populated currently. Check the translations provided in the columns below.
Changes
Updated Examine Data to include a localization table. Aiming to keep these tables pretty high-level. E.g. Tiles, Items, UI etc.
Examine Data Name Key and Description Key are used to refer to an entry in the localization table. They are not intended as the actual display name.
Examine UI now uses the localization tables rather than the key directly.
Known issues
Although a Russian translation is provided, the text does not appear when Russian is selected. I suspect the specific font asset used does not support Cyrillic.
Translations are from Google Translate, and are probably wrong.
Only a very few items actually have translations provided.
Related issues/PRs
Closes #1393