CyberSys / msg2po

A set of helper tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back

Home Page:https://forums.bgforge.net/viewforum.php?f=9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A set of helper tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back

https://forums.bgforge.net/viewforum.php?f=9


Languages

Language:Python 94.1%Language:Shell 5.9%