how to do multi-language?
Has anyone done a multi-language app using GS? I know that I can put a language selector in the app but i'd rather have the proper multi-language app with different versions by language. Thanks
Has anyone done a multi-language app using GS? I know that I can put a language selector in the app but i'd rather have the proper multi-language app with different versions by language. Thanks
Comments
Yes. Fantasy Nations has a choice of languages including English and Chinese, and more languages can be added if a new translation done. What I did is put a language determine attribute.
For Ex, new int attribute lang, 1=Eng 2=Chin,
Rule: when lang=1, display text "How are you?"
when lang=2, display text "Ni hao ma?"
Works!
You could use the platform attributes to determine what language the players device is set to, and display texts in that language. This way you don't need a manual language selection.
I'd still go with one, though. Even if it's an option that isn't presented by default. There are a lot of reasons someone might want to play a game in a different language. Just two examples - someone learning a new language and wanting to practice, someone's mum who accidentally set their phone language to Italian and can't figure out how to turn it back (happens more often than you'd think).
I think @MentalDonkeyGames' suggestion is a great one, but do put the option to change it somewhere.
That is true. Ofcourse you could / should still have an option to choose the language somewhere in the game.
thank you for this help guys. @MentalDonkeyGames how do I " use the platform attributes to determine what language the players device is set to " ? I haven't seen this before.
GS provided automatic detected device informations a few months ago, there are in here:

@neo1998x does anyone know what the value is for french and spanish? I want to use the logic, if platform.language = french - then I will change everything to french...
These should be the ISO 639-1 codes listed here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes