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

User avatar
Hamlet
Member
 
Posts: 569
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

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

by Hamlet » Fri Aug 16, 2019 17:53

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.
SelfNote: "KeepCalm, Remember that Ppl also HaveRealLife stuff to do. PS bite your tongue, just in case."
 

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

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

by Yvanhoe » Sat Aug 17, 2019 07:19

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: 569
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

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

by Hamlet » Sat Aug 17, 2019 11:40

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]
SelfNote: "KeepCalm, Remember that Ppl also HaveRealLife stuff to do. PS bite your tongue, just in case."
 

User avatar
Hamlet
Member
 
Posts: 569
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

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

by Hamlet » Sat Aug 17, 2019 17:30

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 7 times
SelfNote: "KeepCalm, Remember that Ppl also HaveRealLife stuff to do. PS bite your tongue, just in case."
 

User avatar
Hamlet
Member
 
Posts: 569
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

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

by Hamlet » Sun Aug 18, 2019 11:31

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.
SelfNote: "KeepCalm, Remember that Ppl also HaveRealLife stuff to do. PS bite your tongue, just in case."
 

User avatar
Hamlet
Member
 
Posts: 569
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

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

by Hamlet » Sun Aug 18, 2019 16:02

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.
SelfNote: "KeepCalm, Remember that Ppl also HaveRealLife stuff to do. PS bite your tongue, just in case."
 

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

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

by Krock » Mon Aug 19, 2019 19:19

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.
>> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 1 guest