Pomerge will merge corrected PO, XLIFF, or TMX files (or snippets) into your existing PO, XLIFF, TMX files. Usually you would extract errors using pofilter, make corrections to these PO (or XLIFF, TMX) snippets then merge them back using pomerge. You could also use pogrep to extract a number of messages matching a certain string, make corrections then merge the correction back using pomerge.
It is probably best to run pomerge against files stored in some kind of version control system so that you can monitor what changes were made.
Pomerge will also attempt to make as small a change as possible to the text, making it easier to see the changes using your version control system.
pomerge [options] [-t <template>] -i <input> -o <output>
|<template>||is a set of reference PO, XLIFF, TMX files, either the originals or a set of POT files|
|<input>||contains the corrected files that are to override content in <output>|
|<output>||contains the files whose content will be overridden by <input>. This can be the same directory as <template>|
|--version||show program’s version number and exit|
|-h, --help||show this help message and exit|
|--manpage||output a manpage based on the help|
|show progress as: dots, none, bar, names, verbose|
|show errorlevel as: none, message, exception, traceback|
|read from INPUT in po, pot, xlf, tmx formats|
|exclude names matching EXCLUDE from input paths|
|write to OUTPUT in po, pot, xlf, tmx formats|
|read from TEMPLATE in po, pot, xlf, tmx formats|
|whether to overwrite existing translations with blank translations (yes/no). Default is yes.|
|whether to overwrite existing translations with fuzzy translations (yes/no). Default is yes. (new in version 1.9)|
|whether to merge comments as well as translations (yes/no). Default is yes.|
These examples show pomerge in action.
pomerge -t af -i af-check -o af
Take corrections from af-check merge them with the templates in af and output into af. Thus merge af-check and override entries found in af. Do this only if you are using a version control system so that you can check what changes pomerge made or if you have complete and utter confidence in this tool.
pomerge --mergeblanks=yes -t af -i af-check -o af-new
Merge the corrections from af-check with templates in af and output to af-new. If an entry is blank in af-check then make it blank in the output in af-new.