I read OpenRa Lua documentation now.
https://docs.openra.net/en/release/lua/
And I found a function without description: Translate().
May I ask, what is this?
UserInterface Translate()
Lua
Re: UserInterface Translate()
It is part of the ongoing translation system implementation. You can see translation keys (which are the inputs to this function) and their values (the output of this function) in the "en.ftl" file(s). Our default missions already use this for the English translation.
Re: UserInterface Translate()
It's interesting.
I try to change something in the "en.ftl" file. The text changing in the game too.
What if I (or somebody) create "abcd.ftl" file for abcd language?
Can I choose this language (this file) somewhere in settings?
Or it does not work yet?
Or it does not work this way?
I try to change something in the "en.ftl" file. The text changing in the game too.
What if I (or somebody) create "abcd.ftl" file for abcd language?
Can I choose this language (this file) somewhere in settings?
Or it does not work yet?
Or it does not work this way?
Re: UserInterface Translate()
Changing the language is not exposed yet as the translation system is not complete, but in the future you will be able to use new .ftl files for different languages.