Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Manu on Tue 08/06/2021 17:12:34

Title: Game.TranslationFilename Empty
Post by: Manu on Tue 08/06/2021 17:12:34
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) Select
Game.ChangeTranslation("Portuguese");

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

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?



Title: Re: Game.TranslationFilename Empty
Post by: Crimson Wizard on Tue 08/06/2021 17:16:29
Could be a bug. Which version of AGS are you using?
Title: Re: Game.TranslationFilename Empty
Post by: Manu on Tue 08/06/2021 17:18:03
The last one available, 3.5.1.7
Title: Re: Game.TranslationFilename Empty
Post by: Crimson Wizard on Tue 08/06/2021 17:43:03
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
Title: Re: Game.TranslationFilename Empty
Post by: Manu on Tue 08/06/2021 17:55:10
Ok, thank you!
Probably I tested IsTranslationAvailable too quickly, but I was sure about Game.TranslationFilename.
I'll wait for the next release. Thanks!