LinuxCommandLibrary

msgattrib

Update message catalogs attributes in gettext

SYNOPSIS

msgattrib [OPTION] [INPUTFILE]

PARAMETERS

--translated
    Select only translated messages.

--untranslated
    Select only untranslated messages.

--fuzzy
    Select only fuzzy messages.

--no-fuzzy
    Select only non-fuzzy messages.

--obsolete
    Select only obsolete messages.

--no-obsolete
    Select only non-obsolete messages.

--comment
    Select messages with comments.

--no-comment
    Select messages without comments.

--header
    Select only the header entry.

--no-header
    Select all except the header entry.

--set-fuzzy
    Mark selected messages as fuzzy.

--clear-fuzzy
    Unmark selected messages as fuzzy.

--delete
    Delete selected messages.

--more-comments
    Output also the comments from previous lines.

--input=INPUTFILE
    Read input from specified file.

--output=OUTPUTFILE
    Write output to specified file. Standard output is used if no file is specified.

--help
    Display help message and exit.

--version
    Display version information and exit.

DESCRIPTION

The msgattrib command is a utility used to manipulate and inspect message attributes within Portable Object (PO) files. PO files are commonly used for software localization, containing translations of messages from one language to another. msgattrib allows you to filter messages based on various attributes such as translated status, fuzzy status, obsolete status, or comments. You can use it to extract messages that meet certain criteria, mark messages as fuzzy, or remove obsolete entries. This is valuable for managing and maintaining translation projects, ensuring the quality and completeness of translations. It can be used to automate tasks related to message flags, making localization workflows more efficient.
msgattrib is part of the GNU gettext utilities.

CAVEATS

msgattrib modifies the PO file in place unless an output file is specified with the --output option. Care should be taken when using the --delete option, as it permanently removes messages from the PO file.

EXIT STATUS

The exit status is 0 on success, 1 on command line syntax errors, or 2 on other errors.

SEE ALSO

msgmerge(1), msgfmt(1), msgcat(1)

Copied to clipboard