This is a set of tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back, used in BGforge Hive. Ask questions here.
pip install msg2po
Also install Gettext tools, and make sure they are in PATH.
$ poify.py -h
.bgforge.yml not found, assuming defaults
usage: poify.py [-h] [-e ENC] [DIR]
Poify files in selected directory
positional arguments:
DIR source language directory (default: ./english)
options:
-h, --help show this help message and exit
-e ENC source encoding (default: cp1252)
Github action is available for automatic processing.
Unfuzzy removes fuzzy flag and previous msgid from PO entries, if after all replacements current msgid and previous msgid match exactly. Usually it is run after spelling changes in source language, to reduce diff noise and avoid extra review burden.
The comparison is case sensitive. The replacements are read from unfuzzy.yml
in current directory, example:
- ["Nuka Cola", "Nuka-Cola"]
- ["nuka cola", "Nuka-Cola"]
Run
unfuzzy.py -w data/text/po/french.po