LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install gettext
copy
sudo dnf install gettext
copy
sudo pacman -S gettext
copy
sudo apk add gettext
copy
brew install gettext
copy
nix profile install nixpkgs#gettext
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid