Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msg2po-1.3.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

msg2po-1.3.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file msg2po-1.3.0.tar.gz.

File metadata

  • Download URL: msg2po-1.3.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.8.0-1014-azure

File hashes

Hashes for msg2po-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9d76ca07b770f56e72f6afcee7e5be3aa8f00e49c1f46d4882842ba3f10e8753
MD5 da5951588639646184385c1791b789e8
BLAKE2b-256 fcc9dd2c778825a4ad2e9b91ad96d252d199c0c682fb41f309c29d08e046a676

See more details on using hashes here.

File details

Details for the file msg2po-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: msg2po-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.8.0-1014-azure

File hashes

Hashes for msg2po-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5b27d8b4f19cde0cc8ee1de0b13f4f99cd199e19e6c4901f1dfa29c526d939
MD5 0b1800ba0a3a74d576fa88a12f1dc73c
BLAKE2b-256 76d2ea6c8fd9777123c51917ebaf2c93ac9aa0d9796fc4f90b0538911f652c50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page