how to do multi-language?

jorkosjorkos Member, PRO Posts: 353

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

  • OrvilFoxOrvilFox Member Posts: 67

    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!

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    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.

    Mental Donkey Games
    Website - Facebook - Twitter

  • ArmellineArmelline Member, PRO Posts: 5,368

    @MentalDonkeyGames said:
    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.

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    @Armelline said:

    @MentalDonkeyGames said:
    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.

    Mental Donkey Games
    Website - Facebook - Twitter

  • jorkosjorkos Member, PRO Posts: 353

    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.

  • OrvilFoxOrvilFox Member Posts: 67

    @jorkos said:
    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:

  • jorkosjorkos Member, PRO Posts: 353

    @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...

  • GeorgeGSGeorgeGS Member, PRO Posts: 478

    These should be the ISO 639-1 codes listed here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Sign In or Register to comment.