Based on IAVRA's help text in the Localization Core, the following script returns the current language name:
IAVRA.I18N.language;
Therefore, if your language codes in the Iavra localization plugin are 'esp' for Espanol, and 'eng' for English:
If: Script: IAVRA.I18N.language === 'esp'
Text: None, Window, Bottom
: : Spanish
ELSE
Text: None, Window, Bottom
; : English
END
Obviously, I'm using text commands after the check for language. Tested this code, and it worked.
If you have more languages, this will require possibly either cascading IFs or sequential IFs with a GOTO label.
Thank you very much for the help. It works like a charm! I love this plugin, it's so handy to have all the text from game in one external file! :ehappy:
I feel the stupidest person on the planet since I didn't understand a thing about how it works... After installing, there is an error "unexpected end of input". A tutorial or something like would be really welcome.
The demo from sajiki no longer is available... If someone got one i'll be glad. else i will mange it by my own, but i admit it will be quicker with a demo... Nice work anyway
How do you translate the menu?
Thank you for your wonderful plugin. I searched for a plugin like yours.
I started my first game and will send you an update for the first test phases.
Of course you're mentioned in my credits. 😉
And I have one question. Is there an option to ask you that privatly or do you insist that I ask the question here?
Greetings
KazutoSensei
This plugin is fantastic and does everything it says on the tin.
One issue, however, is that loading a save file after closing the game results in the language being reset to default.
For example:
If I'm in the middle of a game, and I've set the language to German, I can save and exit.
When I open the game again later, and load my save file, the language has reverted to English (the default set by the plugin). Ideally, I want to be able to continue playing in German, since I have already selected that from the options.
Is there a way to retain the current language when the game is saved and loaded?
Only way I can think of would be to keep the current language as a variable, and trigger an event on Load, that would read and set the language after the save file has been loaded up.