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

Uploaded Source

Built Distribution

msg2po-1.2.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msg2po-1.2.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/6.5.0-1018-azure

File hashes

Hashes for msg2po-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e8a178a1586f461dff0ad1ea48d69d2cd11cf11fe96225114e47f4e90c278fe5
MD5 636782bb1187c1c1f37498a8af044b83
BLAKE2b-256 ff261b4e81c5a9d0fcfce8640bcbd74d5e3187f4e3147d39b83766cbb3ad1819

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msg2po-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/6.5.0-1018-azure

File hashes

Hashes for msg2po-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7800fac3474139aafbc2df11bf85afcb5b800936d73c87a956e4d38d682e8381
MD5 02909f16ddd73822b264f2eeadebba44
BLAKE2b-256 4c5ee9c00ec033acee517934ff911965aa8a4684513f8b01bebec18b018f5d5f

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