msgfilter
filters PO file translations through a command
TLDR
Filter translations through command
$ msgfilter [sed -e 's/old/new/g'] < [input.po] > [output.po]
Apply filter to messages$ msgfilter -i [input.po] -o [output.po] [tr a-z A-Z]
Keep header$ msgfilter --keep-header [command] < [input.po]
Process specific messages$ msgfilter --msgid [command] < [input.po]
SYNOPSIS
msgfilter [options] filter-command
DESCRIPTION
msgfilter filters PO file translations through a command. It's part of GNU gettext.
The tool processes each msgstr through a filter. Useful for batch transformations.
PARAMETERS
FILTER-COMMAND
Command to filter messages.-i FILE
Input PO file.-o FILE
Output PO file.--keep-header
Preserve PO header.--msgid
Filter msgid instead of msgstr.--help
Display help information.
CAVEATS
Part of gettext-tools. Filter applies to each message. May break formatting.
HISTORY
msgfilter is part of GNU gettext, enabling automated translation transformations.
