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

Uploaded Source

Built Distribution

msg2po-1.1.16-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msg2po-1.1.16.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/6.2.0-1011-azure

File hashes

Hashes for msg2po-1.1.16.tar.gz
Algorithm Hash digest
SHA256 eb5bbbbcee93820a54a83f2609bf858d181a756e5a316b96c15d356a2f436d8b
MD5 38d72eec87281e7e97ecde8412305c51
BLAKE2b-256 a2e07bcbb631222da9d96dcbb3ec0c4ab9a6713e077198fc07697075863406c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msg2po-1.1.16-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/6.2.0-1011-azure

File hashes

Hashes for msg2po-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 bc356a89a8fe016edc8c1531a1a18b75cac5d1162f1f5b0caf9e3c3f5fbaf2c1
MD5 654c41dc923b5c1f321892b33353d678
BLAKE2b-256 356dfd887bbe8f1960b34c6fd1d09cf494056d4c7a7dacf7697850e95cabc940

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