Page 1 of 1

(Fixed)Italian locale file (filename.it.tr) not being loaded

PostPosted: Fri Aug 16, 2019 17:53
by Hamlet
SOLUTION: viewtopic.php?f=6&t=23096&p=354893#p354893
Locale Tester: viewtopic.php?f=6&t=23096&p=354731#p354825
GitHub issue report: https://github.com/minetest/minetest/issues/8809

1: Minetest's GUI --- language = de, language = fr, language = it
2: Locale file, check the filename and the test string.
3: Ingame outcome, zoom on Inventory's tooltip

Image

Re: Italian locale file (filename.it.tr) not being loaded

PostPosted: Sat Aug 17, 2019 07:19
by Yvanhoe
I recently had a bug like that, that was caused by several mods initializing the same object and for some reasons, the order of loading differed and one of the mods did not localize strings.

I would recommend to check that you have only one mod initializing the Recipe book and no name conflicts between mods showing during initialization (it shows in debug.txt).

Re: Italian locale file (filename.it.tr) not being loaded

PostPosted: Sat Aug 17, 2019 11:40
by Hamlet
Yvanhoe wrote:I would recommend to check that you have only one mod initializing the Recipe book and no name conflicts between mods showing during initialization (it shows in debug.txt).


Thank you for your feedback; the debug.txt doesn't show any errors, furthermore the game - MineClone 2 - has been fully translated to German, when using language = de it works properly.

I have opened a bug report on GitHub if you wish to follow. [link]

Re: Italian locale file (filename.it.tr) not being loaded

PostPosted: Sat Aug 17, 2019 17:30
by Hamlet
MT v5.0.1 and MTG v5.0.1 are correctly loading locale files. This seems to be an issue related to MineClone 2 v0.53.3.
I have created a "tester node" to check which locale file is currently loaded.
While in creative mode take it from the inventory, place it on ground and punch it, it will tell you which locale has been loaded for you.

Re: (NAB) Italian locale file (filename.it.tr) not being loa

PostPosted: Sun Aug 18, 2019 11:31
by Hamlet
The issue is due to Weblate.
If you use the bundled italian .po file, the locale will be properly set.
Instead, if you use the updated .po file [link] or .mo file [link], the locale will fall back to English.

Re: Italian locale file (filename.it.tr) not being loaded

PostPosted: Sun Aug 18, 2019 16:02
by Hamlet
Problem solved, it was due to this section of the .po file that was not being shown in POEdit:

Code: Select all
#: src/network/clientpackethandler.cpp
msgid "LANG_CODE"
msgstr "LANG_CODE"


This happened because I've redone the translation from scratch; setting it to:

Code: Select all
#: src/network/clientpackethandler.cpp
msgid "LANG_CODE"
msgstr "it"


has fixed the issue.
Thanks to SmallJoker, that has solved the mystery.

Re: (Fixed)Italian locale file (filename.it.tr) not being lo

PostPosted: Mon Aug 19, 2019 19:19
by Krock
No problem. Before you create an issue about the poor documentation of those magic translation strings, check out https://github.com/minetest/minetest/issues/8178.