Contents  History  Source  Email Feedback

Gettext Hacks

A few useful Gettext hacks.

Branch merge

Needs to merge translations from a branch back onto HEAD?

msgmerge -C HEAD.po BRANCH.po HEAD.pot > NEW-HEAD.po

Use HEAD.po as a compendium to make sure you get any translations that migh
thave been done in HEAD.  Then migrates BRANCH.po to be up-to-date with
HEAD.pot.  The output NEW-HEAD.po should then be moved to HEAD.po if the merge
happened as planned.