Merge known translations between .po files.
Project description
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.