SilverSandstone/leads
1
1
Fork
You've already forked leads
3

client cannot load translation file #6

Open
opened 2026年05月30日 03:46:52 +02:00 by Bastrabun · 1 comment

This is the log line:

Client: Don't know how to load file "de.po"

It targets de, because that's my client locale. I assume the others are also affected. I don't know what's wrong with the file, maybe because it's in a subfolder? Maybe because the files have odd-looking \n in their values?

Note the \n:

# Generated by mttranslate.
msgid ""
msgstr ""
"PO-Revision-Date: 2024年01月02日 23:40+0000\n"
"Last-Translator: Kyoushi <denis@tragedian.com>\n"
"Language-Team: German <https://translate.codeberg.org/projects/leads/leads/"
"de/>\n"
"Language: de\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.3.1\n"

for my reference 7631

This is the log line: ``` Client: Don't know how to load file "de.po" ``` It targets de, because that's my client locale. I assume the others are also affected. I don't know what's wrong with the file, maybe because it's in a subfolder? Maybe because the files have odd-looking `\n` in their values? Note the \n: ``` # Generated by mttranslate. msgid "" msgstr "" "PO-Revision-Date: 2024年01月02日 23:40+0000\n" "Last-Translator: Kyoushi <denis@tragedian.com>\n" "Language-Team: German <https://translate.codeberg.org/projects/leads/leads/" "de/>\n" "Language: de\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 5.3.1\n" ``` for my reference 7631

Thanks for reporting this issue. I'll fix it in the next update.

The .po files in Leads do not follow Luanti's naming convention, as they predate gettext support and are intended to be converted to .tr. Since Luanti added gettext support in 5.10, the client tries to load the converted files directly, causing the warning.

For now, you can fix it locally by deleting the poconvert folder inside leads/locale. This shouldn't affect the German translation.

Thanks for reporting this issue. I'll fix it in the next update. The `.po` files in Leads do not follow Luanti's naming convention, as they predate gettext support and are intended to be converted to `.tr`. Since Luanti added gettext support in 5.10, the client tries to load the converted files directly, causing the warning. For now, you can fix it locally by deleting the `poconvert` folder inside `leads/locale`. This shouldn't affect the German translation.
Sign in to join this conversation.
No Branch/Tag specified
main
v0.4.0
v0.3.2
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
v0.1.0
v0.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SilverSandstone/leads#6
Reference in a new issue
SilverSandstone/leads
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?