.. _pomigrate2: pomigrate2 ********** pomigrate2 aims to move an existing translation to a new version based on updated PO Template files automatically without user intervention. Therefore it is ideal for when you are migrating many languages or migrating from related but divergent products e.g. Mozilla to Firefox. .. _pomigrate2#prerequisites: Prerequisites ============= GNU Gettext: * :man:`msginit` * :man:`msgcat` * :man:`msgmerge` .. _pomigrate2#usage: Usage ===== :: pomigrate [options] Where: +----------------+--------------------------------------------------------------+ | from | is a directory of existing PO files | +----------------+--------------------------------------------------------------+ | to | is the directory where the migrated PO files will be stored | +----------------+--------------------------------------------------------------+ | new templates | this is the directory that contains the PO Template files | +----------------+--------------------------------------------------------------+ Options: -F, --use-fuzzy-matching use fuzzy algorithms when merging to attempt to match strings -C, --use-compendium create and use a compendium built from the migrating files -C, --use-compendium=COMPENDIUM use an external compendium during the migration --no-wrap do not wrap long lines --locale set locale for newly born files -q, --quiet suppress most output -p, --pot2po use pot2po instead of msgmerge to migrate .. _pomigrate2#operation: Operation ========= pomigrate2 makes use of the Gettext tools msgmerge or Translate Toolkit's :doc:`pot2po` to perform its merging tasks. It firstly finds all files with the same name and location in the directory as in the