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.

Source Distribution

pomerge-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pomerge-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pomerge-0.1.2.tar.gz.

File metadata

  • Download URL: pomerge-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pomerge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f2f425887e4990da78e3523865c61814d32cc192aa9a50d10d597c7ce8c8f85a
MD5 c8cf075f90b6cf2c040cbf1d9a7ddddc
BLAKE2b-256 116bf3caa9108200c88046fd908d4d813d752b8fef269618707af24b9e3e5c05

See more details on using hashes here.

File details

Details for the file pomerge-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pomerge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58d16f7954bbdbb7e80675eefea91b54b45ea69b92ef7697b9d16a8638baa852
MD5 61cddd8039730b672f4110827b0a754f
BLAKE2b-256 9202d4f14124abc16321453d10dd228aad41c057b7b05caf17a1027b52bbb116

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