WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
40.05k stars 1.76k forks source link

[Bug] langtool.py not working with the CONTRIBUTING.md syntax & inaccuracies #1775

Open Nixuge opened 6 days ago

Nixuge commented 6 days ago

Operating System

Linux

What's the issue you encountered?

The syntax python3 dist/langtool.py create plugins/builtin/romfs/lang <iso_code> doesn't seem to be working anymore (error: unrecognized arguments: plugins/builtin/romfs/lang )

Instead you need to use python3 dist/langtool.py create --langdir plugins/builtin/romfs/lang --lang <iso_code> (or just python3 dist/langtool.py create --lang <iso_code> for everything)

Haven't tried the translate but ig the same issue occurs

Not PRing as i'm not sure if that's a me issue or nah (apparently been like this for a long time & no one complaining?) but doesn't look like it, can make one if needed

Also unsure if ISO 639-1 is the right format as it seems to be just 2 letters representing the language while the existing translation files are using ICU Locales (combination of ISO 639- lowercase language & ISO 3166- uppercase country)

Could also be nice to have an indication to put the language/country names in English & not in the language you're translating to while being prompted to enter those

How can the issue be reproduced?

All said above

ImHex Version

x.x.x

ImHex Build Type

Installation type

git

Additional context?

No response