Localization
chaosmasterro
Member, PRO Posts: 51
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
@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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
I see! This does imply that I know the language to translate it to correct?
Yes, or you just make words up.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Arrk balderfladdick!