Closed MartinDesrosiers closed 6 years ago
The french/english text is set with the UI_languageSelection componet set on the text field of a button or a label.
The modification is done directly on the UI_languageSelection instead of an XML file. However, it could be change if needed.
Adding a new Language will be 3 simple steps.
TODO On the GameManager init, we could load a file with the options set by the user.
TODO On change, save options in a file.
The issue is done.
Next step is to integrate it to a menu option.
Sent on branch menuOptions. Awaiting confirmation/merge to master to close it.
We need to translate the scenes Main Menu, Level Selection, and the Level Editor. Patrick will create the function and I'll do the translation. We start only with the French version, but the system needs to allow other languages later.
Note: there was already a translation script for the Main Menu. We could reuse it or find a more global function. Ideally, all would be done in an xml external file for the translator.
Note: All the texts in the UI are already configured to stretch according to the text length. So translating the game won't have too much unintended visual impact