LinuxCommandLibrary

msgattrib

filters gettext PO files by message attributes

TLDR

Extract translated messages

$ msgattrib --translated [input.po] -o [output.po]
copy
Extract untranslated messages
$ msgattrib --untranslated [input.po] -o [output.po]
copy
Extract fuzzy messages
$ msgattrib --fuzzy [input.po] -o [output.po]
copy
Clear fuzzy flags
$ msgattrib --clear-fuzzy [input.po] -o [output.po]
copy

SYNOPSIS

msgattrib [options] inputfile

DESCRIPTION

msgattrib filters gettext PO files by message attributes. Extracts or modifies messages based on translation status (translated, fuzzy, obsolete). Part of GNU gettext for internationalization workflows.

PARAMETERS

--translated

Keep only translated messages.
--untranslated
Keep only untranslated messages.
--fuzzy
Keep only fuzzy messages.
--clear-fuzzy
Remove fuzzy flags.
--set-fuzzy
Set fuzzy flags.
-o file
Output file.

SEE ALSO

msgcat(1), msgfmt(1), msgunfmt(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community