Adds localization functionality to the Lobby scene. Text within the Lobby scene now can now be localized for English, French, Portuguese and Russian.
This PR includes:
Static text localization for lobby tab descriptors and content.
Dynamic localization for Toggle Buttons and Round State Views.
LocalizeFont script to enable font to change based on selected locale.
A few batch files to enable testing of the build.
This PR does not include:
Any kind of guarantee that the translations are correct.
Any mechanism for changing the locale within a build (e.g. a "Select Language" menu)
Any second-order changes to UI elements (e.g. so translated text fits into provided text boxes)
Any guidance on how to get Addressables correctly functioning in this project.
PR checklist
[x] The game builds properly without errors.
[x] No unrelated changes are present.
[x] No "trash" files are committed.
[x] Relevant code is documented.
Pictures/Videos)
Testing
In Play Mode in the editor, you can change the locale using the selector at the top right of the screen.
In a build, you cannot change the locale while in-game. However, you can use the provided batch files to open the game with a different locale selected. Make sure you have correctly built the Addressables before testing in a build.
Changes
Should be fairly self-explanatory and documented in git comments, but hit me up if you have questions.
Future work required
Translations will need to be reviewed for correctness / appropriateness / tone.
UI may need to change to accommodate different length text. For example, on the provided image, you can see several occurrences of the text not fitting on the button or text field.
Related issues
Further contributes to the intent of #1393, building on the work completed in #1448.
Summary
Adds localization functionality to the Lobby scene. Text within the Lobby scene now can now be localized for English, French, Portuguese and Russian.
This PR includes:
This PR does not include:
PR checklist
Pictures/Videos)
Testing
In Play Mode in the editor, you can change the locale using the selector at the top right of the screen.
In a build, you cannot change the locale while in-game. However, you can use the provided batch files to open the game with a different locale selected. Make sure you have correctly built the Addressables before testing in a build.
Changes
Should be fairly self-explanatory and documented in git comments, but hit me up if you have questions.
Future work required
Related issues
Further contributes to the intent of #1393, building on the work completed in #1448.