Localization

Is there a way to localize our games? I wanted to localize my game to Chinese, Spanish, and German for iOS or Android games. Am I able to do that?

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited July 2017

    @chaosmasterro, sure,

    first make an integer game level attribute, e.g.

    game.Language

    Let each language be represented by a number starting at 1

    Let the user be able to choose their language, or set the language before publishing to a country specific app store.

    Then for all your text in the game, make a table, like so:

    now you can simply use the tableCellValue function in your display text behaviors to display the appropriate text:

    tableCellValue(T_Languages, self.ThisWord, game.Language)

    the attribute self.ThisWord can also just be the row number in the table, for the appropriate word.

    For images which contain text, make a version for each language and put a number at the end of the file name according to the language:

    welcome_image_1.png (for english)
    welcome_image_2.png (for zulu)

    Then in your actor, use the change attribute behavior to select the correct image:

    Change Attribute self.image = "welcome_image_"..game.Language

    That's it.

  • chaosmasterrochaosmasterro Member, PRO Posts: 51

    @Hopscotch said:
    @chaosmasterro, sure,

    first make an integer game level attribute, e.g.

    game.Language

    Let each language be represented by a number starting at 1

    Let the user be able to choose their language, or set the language before publishing to a country specific app store.

    Then for all your text in the game, make a table, like so:

    now you can simply use the tableCellValue function in your display text behaviors to display the appropriate text:

    tableCellValue(T_Languages, self.ThisWord, game.Language)

    the attribute self.ThisWord can also just be the row number in the table, for the appropriate word.

    For images which contain text, make a version for each language and put a number at the end of the file name according to the language:

    welcome_image_1.png (for english)
    welcome_image_2.png (for zulu)

    Then in your actor, use the change attribute behavior to select the correct image:

    Change Attribute self.image = "welcome_image_"..game.Language

    That's it.

    I see! This does imply that I know the language to translate it to correct?

  • PhilipCCPhilipCC Encounter Bay, South AustraliaMember Posts: 1,390

    @Hopscotch said:
    Yes, or you just make words up. :disappointed:

    Arrk balderfladdick! :hushed:

Sign In or Register to comment.