Internationalization / localization / i18n

Monkey Forums/Monkey Programming/Internationalization / localization / i18n

muruba(Posted 2012) [#1]
Hi there,

I checked the documentation but can't find anything related to internationalization, I am wondering if there is an out-of-box way in Monkey to detect the user 'locale' - language/country? Thanks!

Cheers


time-killer-games(Posted 2012) [#2]
On the game start up, which should be self explainitory, have buttons that look like different country flags, when the mouse is over one it says "select this lanmguage" in whatever language the flag represents. But you'll have to make several copies of the same game in different translations depending on what flags you provide to select.


therevills(Posted 2012) [#3]
BTW Diddy has an i18N module, which allows you to quickly switch the text for each supported language, you store the translated words in an XML file:

http://code.google.com/p/diddy/source/browse/trunk/src/diddy/i18n.monkey

And heres an example:

http://code.google.com/p/diddy/source/browse/trunk/examples/I18N/testI18N.monkey


muruba(Posted 2012) [#4]
Thanks guys!