Opened 7 days ago
Last modified 6 days ago
#17045 new defect
TOOLS: devtools/generate-metainfo.py fails on zh_Hans.po / zh_Hant.po
| Reported by: | wehrwolfmann | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | Tools |
| Version: | Keywords: | ||
| Cc: | Game: |
Description
$ python3 devtools/generate-metainfo.py
File "devtools/generate-metainfo.py", line 160, in po_to_lang
assert(region_subtag is None or len(region_subtag) == 2)
AssertionError
po_to_lang() treats everything after the underscore as a region subtag,
but zh_Hans / zh_Hant carry a four letter script subtag.
The script has not been runnable since po/zh_Hans.po was added in May 2024.
dists/org.scummvm.scummvm.metainfo.xml is stale as a result: cs, eu, sv and
zh-Hans have a translated summary in po/ that the shipped file does not carry.
Change History (1)
comment:1 by , 6 days ago
| Component: | --Other-- → Tools |
|---|---|
| Summary: | devtools/generate-metainfo.py fails on zh_Hans.po / zh_Hant.po → TOOLS: devtools/generate-metainfo.py fails on zh_Hans.po / zh_Hant.po |
Note:
See TracTickets
for help on using tickets.
