Strings from the bottom help bar and the F1-triggered help section aren't being generated by the script.
Screenshot
The Polish translation shows up as 100% done, but it really isn't. If I manually put:
msgid "Up"
msgstr "W górę"
inside the Polish translation file, it works correctly:
However, this edit will be commented out after running ./locales_generator.sh pl. If I also put the strings in base.pot, the script will remove them.
I think this is because the script only detects tr("string goes here"), and these remaining strings are translated from a variable:
|
def _translate_bindings(source: BindingsMap | None, target: BindingsMap) -> None: |
|
"""Translate binding descriptions from source to target. |
|
|
|
Uses source (original, immutable class-level cache) to avoid |
|
double-translation on repeated calls (e.g. language switch). |
|
""" |
|
if source is None: |
|
return |
|
for key, bindings in source.key_to_bindings.items(): |
|
target.key_to_bindings[key] = [replace(b, description=tr(b.description)) if b.description else b for b in bindings] |
This was added in
#4363. The PR also manually added the strings to
base.pot, but they got removed by the script in
#4557.
Strings from the bottom help bar and the F1-triggered help section aren't being generated by the script.
Screenshot
The Polish translation shows up as 100% done, but it really isn't. If I manually put:
inside the Polish translation file, it works correctly:
However, this edit will be commented out after running
./locales_generator.sh pl. If I also put the strings inbase.pot, the script will remove them.I think this is because the script only detects
tr("string goes here"), and these remaining strings are translated from a variable:archinstall/archinstall/tui/components.py
Lines 46 to 55 in c6cb7b3
This was added in #4363. The PR also manually added the strings to
base.pot, but they got removed by the script in #4557.