Hello
Not sure if this is a bug or if I did something wrong, so I post it here.
I did this in my game and it works
Game.ChangeTranslation("Portuguese");
it changes the game to Portuguese, which is not the default language.
But strangely, this does not work
labelLang.Text = String.Format("Lingua: %s", Game.TranslationFilename);
Basically, Game.TranslationFilename is empty, despite the game is using a translation. I also checked IsTranslationAvailable () and it is false.
What could be the problem?
Could be a bug. Which version of AGS are you using?
The last one available, 3.5.1.7
Yes, Game.TranslationFilename does not return anything.
IsTranslationAvailable() seems to be working when I test it though.
There will be a fixed editor available under "Artifacts" section after the server finishes building:
https://cirrus-ci.com/task/5217947690991616
Ok, thank you!
Probably I tested IsTranslationAvailable too quickly, but I was sure about Game.TranslationFilename.
I'll wait for the next release. Thanks!