Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.99 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.99 KB

MSG2PO

Build status Patreon Telegram Discord IRC

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.


Changelog

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