Topic: Add-on Internationalization
OIPUN![]() Topic Opener |
Posted at: Yesterday 17:32
I use Widelands in Czech language and I've installed 1.2 and 1.3 versions simultaneously. When I browse add-ons in different WL versions the internationalization is not displayed everywhere. For example, I use 5 map add-ons. White Summer and Mostly Balanced Maps are translated in both versions, but translation of Maps for 1.2 and Tropical Maps is shown only in 1.2 version and translation of Challenge Maps only in 1.3 version. In the add-on list the situation is similar. Many odd-ons are translated only in 1.3 version not in 1.2 version. Even the Czech translation of "Editor: Swap Terrains" is not displayed in any version, although it should be available. When I use the addo-on in Editor, it is in English. I have no idea, why is that. ![]() ![]() |
Nordfriese![]() |
Posted at: Yesterday 17:43
We changed the localization system backend during the 1.3 development cycle. In v1.2, we use GNU gettext, and the translations use MO files which have to be placed in a very specific directory structure. In v1.3, we use tinygettext, which uses PO files placed in a different directory. We did not however change the versioning of translations. So if you mix 1.2 and 1.3, then v1.3 will download a newer version of the translations which 1.2 cannot use; and v1.2 will download an older version of the translations which 1.3 cannot use. Yet both document their respective download as the current one, so as far as the other version is concerned, the files look as if they are up to date and simply incompletely translated. The solution to this is not to mix different Widelands versions together, or use separate home directories if you want to have several anyway… ![]() ![]() |
OIPUN![]() Topic Opener |
Posted at: Yesterday 18:24
Thank you for your reply. The explanation makes sense. And what about the "Swap Terrains" add-on. I have checked my files. The Czech MO file for +7 version is created but is empty, although there should be Czech translation available. ![]() ![]() |