Skip to main content

Merge known translations between .po files.

Project description

https://img.shields.io/pypi/v/pomerge.svg

Script to merge translations from a set of po files to other set of po files.

Usage

To merge translations from contributors to your files:

pomerge --from ../contributors/*.po ../contributors/**/*.po --to *.po **/*.po

To merge translations from inside a single repository, usefull when simple strings can appear in multiple .po files:

pomerge --from **.*.po --to **/*.po

Note that pomerge does not care about po file names, a translation from one file can land in another as long as their msgid are identical.

--from and --to are optional, when not given, pomerge will use a temporay file. So:

pomerge --from a/**/*.po --to b/**/*.po

and:

pomerge --from a/**/*.po
pomerge --to b/**/*.po

are equivalent.

The style in your .po files may change a lot, completly destroying the readability of git diffs, to fix this I use poindent.

  • Free software: MIT license

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pomerge-0.1.2-py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 3, 2018
pomerge-0.1.2.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None Jul 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page