LinuxCommandLibrary

msgfilter

filters PO file translations through a command

TLDR

Filter translations through command

$ msgfilter [sed -e 's/old/new/g'] < [input.po] > [output.po]
copy
Apply filter to messages
$ msgfilter -i [input.po] -o [output.po] [tr a-z A-Z]
copy
Keep header
$ msgfilter --keep-header [command] < [input.po]
copy
Process specific messages
$ msgfilter --msgid [command] < [input.po]
copy

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.

SEE ALSO

msgconv(1), msggrep(1), msguniq(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community