A set of helper tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back.
Project description
MSG2PO
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.
Installation
pip install msg2po
Also install Gettext tools, and make sure they are in PATH.
Poify
$ 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)
Action
Github action is available for automatic processing.
Unfuzzy
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.