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

Post Reply
User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

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
Attachments
i18n_bug.jpg
(361.73 KiB) Not downloaded yet
Last edited by Hamlet on Sun Aug 18, 2019 16:03, edited 5 times in total.
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Yvanhoe
Member
Posts: 131
Joined: Fri Jul 05, 2019 03:18
Location: Japan

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

by Yvanhoe » Post

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).

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

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]
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

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.
Attachments
locale_tester.7z
(14.54 KiB) Downloaded 14 times
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

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.
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

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.
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Krock
Developer
Posts: 4538
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests