How do i get the English translation file to work without translating it?

Started by Olleh19, Sun 04/10/2020 13:18:28

Previous topic - Next topic

Olleh19

 (laugh) I'm laughing here! I thought i could just create a english translation file. But since it's the default Language it complains about having no translation.
I mean i'm gonna do a Swedish button (Already translated and done) and a English one.

Crimson Wizard

You dont need a file for default translation, as these texts are inside your game itself. Call Game.ChangeTranslation with empty string:

Quote
static bool Game.ChangeTranslation(string newTranslationName)

Changes the active translation to newTranslationName. This must be the file name without the extension, for example "French" or "Spanish". It can also be a blank string, in which case the current translation will be switched off and the game will revert to the default language.

Olleh19

Thing is, it's automatically loading Swedish now after i deleted the English translation file, i got REALLY confused!
But as you say, i can clearly see ofc that all the english language is sill in the script.

Thanks!

Crimson Wizard

Quote from: Olleh19 on Sun 04/10/2020 13:41:18
Thing is, it's automatically loading Swedish now after i deleted the English translation file, i got REALLY confused!

Maybe that's because it saved last translation setting. Try checking winsetup, or deleting user config file (in game saves folder).

Olleh19

Quote from: Crimson Wizard on Sun 04/10/2020 13:45:39
Quote from: Olleh19 on Sun 04/10/2020 13:41:18
Thing is, it's automatically loading Swedish now after i deleted the English translation file, i got REALLY confused!

Maybe that's because it saved last translation setting. Try checking winsetup, or deleting user config file (in game saves folder).

just putting Game.ChangeTranslation (""); in the game_start() changed it back, it was all i needed. i tried game.Changetranslation ("default"); or such, with no success.

SMF spam blocked by CleanTalk