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.2.3.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: msg2po-1.2.3.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.5.0-1022-azure

File hashes

Hashes for msg2po-1.2.3.tar.gz
Algorithm Hash digest
SHA256 24ce12d948963e9b785eca8e6c9018fef30543d8445aa6f36be8065df2c072cf
MD5 67eb98b5f0d97926ed2f4d2a5ab25280
BLAKE2b-256 1d86640518c0941a3fe8ea4bcfcd8506ce10cbdb57976fe92b31f753751d31c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msg2po-1.2.3-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.5.0-1022-azure

File hashes

Hashes for msg2po-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 09ca608a381cd40e949c06d9d656f5551e7aac98366248ccef73b7df61c2f8be
MD5 f47295e307179c0b180ee0de152ecdc0
BLAKE2b-256 8f47204aca1d847a7401c1d9c2c13c75dca421197f96c67d6952b776ed93a21d

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