Hi. I am writing an application wich should you allow to make a translatable game (it generates a ruby script from a list *.po files containing all text translations). The generated ruby script almost work, but I have an issue I still cannot solve.
The problem is changing the text on main menu "on the fly".
------------------------
How the script works: it generates a new main menu ("Language") where you can choose one of the available languages. When you choosed a language, all text will be translated correctly in the desired language (and the setting will be saved on a text file, so the next time the game will start with the desired language).
But, unless you close the game and launch it again, main menu items will be not translated.
All vocabs terms are indeed changed when a new language is selected, but I surely need something to "refresh" text commands on main window (probably, if an approach allows you to change the text "on the fly" the same method could be applied on all other texts). Another solution could be "force game to be closed if a new language is selected, allowing that language is changed and game will need to reboot" . However all other translations (example message text) don't actually require a reboot to work, and moreover I don't know what instruction I could use to force a game shutdown.
Any help?
The problem is changing the text on main menu "on the fly".
------------------------
How the script works: it generates a new main menu ("Language") where you can choose one of the available languages. When you choosed a language, all text will be translated correctly in the desired language (and the setting will be saved on a text file, so the next time the game will start with the desired language).
But, unless you close the game and launch it again, main menu items will be not translated.
All vocabs terms are indeed changed when a new language is selected, but I surely need something to "refresh" text commands on main window (probably, if an approach allows you to change the text "on the fly" the same method could be applied on all other texts). Another solution could be "force game to be closed if a new language is selected, allowing that language is changed and game will need to reboot" . However all other translations (example message text) don't actually require a reboot to work, and moreover I don't know what instruction I could use to force a game shutdown.
Any help?