Game.TranslationFilename Empty

Started by Manu, Tue 08/06/2021 17:12:34

Previous topic - Next topic

Manu

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
Code: ags
Game.ChangeTranslation("Portuguese");


it changes the game to Portuguese, which is not the default language.
But strangely, this does not work
Code: ags

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?




Crimson Wizard

Could be a bug. Which version of AGS are you using?

Manu

The last one available, 3.5.1.7

Crimson Wizard

#3
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

Manu

Ok, thank you!
Probably I tested IsTranslationAvailable too quickly, but I was sure about Game.TranslationFilename.
I'll wait for the next release. Thanks!

SMF spam blocked by CleanTalk