LinuxCommandLibrary

msgmerge

merges two PO files

TLDR

Merge translations with template

$ msgmerge [old.po] [new.pot] -o [merged.po]
copy
Update PO file in place
$ msgmerge -U [existing.po] [template.pot]
copy
Merge with fuzzy matching
$ msgmerge --fuzzy-match [old.po] [new.pot] -o [merged.po]
copy
Backup before update
$ msgmerge -U --backup=numbered [file.po] [template.pot]
copy
Quiet mode
$ msgmerge -q [old.po] [new.pot] -o [merged.po]
copy

SYNOPSIS

msgmerge [options] def.po ref.pot

DESCRIPTION

msgmerge merges two PO files. It's part of GNU gettext.
The tool updates translations with new template. Preserves existing translations while adding new strings.

PARAMETERS

DEF.PO

Existing translations file.
REF.POT
Reference template file.
-o FILE
Output file.
-U
Update def.po in place.
--fuzzy-match
Use fuzzy matching.
--backup TYPE
Backup control.
--help
Display help information.

CAVEATS

Part of gettext-tools. Fuzzy matches marked. Review merged output.

HISTORY

msgmerge is part of GNU gettext, essential for maintaining translation files across software updates.

SEE ALSO

msginit(1), msgfmt(1), xgettext(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community