[Scummvm-tracker] [ScummVM :: Bugs] #17045: devtools/generate-metainfo.py fails on zh_Hans.po / zh_Hant.po

ScummVM :: Bugs trac at scummvm.org
Tue Aug 4 01:43:46 UTC 2026


#17045: devtools/generate-metainfo.py fails on zh_Hans.po / zh_Hant.po
-------------------------+-----------------------
Reporter:  wehrwolfmann  |      Owner:  (none)
    Type:  defect        |     Status:  new
Priority:  normal        |  Component:  --Other--
 Version:                |   Keywords:
    Game:                |
-------------------------+-----------------------
 $ 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.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/17045>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list