Changing Language during Game

Started by Digital Mosaic Games, Wed 24/05/2017 13:56:23

Previous topic - Next topic

Digital Mosaic Games

Hello,

Is it possible to change the language during the game in the option menu?
And if not is it possible to change the language in the installation setup of the game?
I want my game as an english and a german version.

CrashPL

Yes, you can use the static function ChangeTranslation

Code: ags
static bool Game.ChangeTranslation(string newTranslationName)


Code: ags
if (Game.ChangeTranslation("Polish") == true) {
    Display("Now using Polish translation!");
} else {
    Display("Unable to change the translation!");
}


There are also other helpful functions, like IsTranslationAvailable and TranslationFilename, if you want to change translations while the game is running. It's all in the manual. ;)

Digital Mosaic Games

Thank you very much and warm regards CrashPL!

SMF spam blocked by CleanTalk