Usage: /usr/bin/msgattrib [OPTION] [INPUTFILE]
Filters the messages of a translation catalog according to their attributes,
and manipulates the attributes.
Mandatory arguments to long options are mandatory for short options too.
Input file location:
INPUTFILE input PO file
-D, --directory=DIRECTORY add DIRECTORY to list for input files search
If no input file is given or if it is -, standard input is read.
Output file location:
-o, --output-file=FILE write output to specified file
The results are written to standard output if no output file is specified
or if it is -.
Message selection:
--translated keep translated, remove untranslated messages
--untranslated keep untranslated, remove translated messages
--no-fuzzy remove 'fuzzy' marked messages
--only-fuzzy keep 'fuzzy' marked messages
--no-obsolete remove obsolete #~ messages
--only-obsolete keep obsolete #~ messages
Attribute manipulation:
--set-fuzzy set all messages 'fuzzy'
--clear-fuzzy set all messages non-'fuzzy'
--set-obsolete set all messages obsolete
--clear-obsolete set all messages non-obsolete
--previous when setting 'fuzzy', keep previous msgids
of translated messages.
--clear-previous remove the "previous msgid" from all messages
--empty when removing 'fuzzy', also set msgstr empty
--only-file=FILE.po manipulate only entries listed in FILE.po
--ignore-file=FILE.po manipulate only entries not listed in FILE.po
--fuzzy synonym for --only-fuzzy --clear-fuzzy
--obsolete synonym for --only-obsolete --clear-obsolete
Input file syntax:
-P, --properties-input input file is in Java .properties syntax
--stringtable-input input file is in NeXTstep/GNUstep .strings syntax
Output details:
--color use colors and other text attributes always
--color=WHEN use colors and other text attributes if WHEN.
WHEN may be 'always', 'never', 'auto', or 'html'.
--style=STYLEFILE specify CSS style rule file for --color
-e, --no-escape do not use C escapes in output (default)
-E, --escape use C escapes in output, no extended chars
--force-po write PO file even if empty
-i, --indent write the .po file using indented style
--no-location do not write '#: filename:line' lines
-n, --add-location generate '#: filename:line' lines (default)
--strict write out strict Uniforum conforming .po file
-p, --properties-output write out a Java .properties file
--stringtable-output write out a NeXTstep/GNUstep .strings file
-w, --width=NUMBER set output page width
--no-wrap do not break long message lines, longer than
the output page width, into several lines
-s, --sort-output generate sorted output
-F, --sort-by-file sort output by file location
Informative output:
-h, --help display this help and exit
-V, --version output version information and exit
Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
or by email to <bug-gettext@gnu.org>.
Options (38)
| Option | Description | Source |
|---|
-D, --directory DIRECTORY | add DIRECTORY to list for input files search | help + man |
-o, --output-file FILE | write output to specified file | help + man |
--translated | keep translated, remove untranslated messages | help + man |
--untranslated | keep untranslated, remove translated messages | help + man |
--no-fuzzy | remove 'fuzzy' marked messages | help + man |
--only-fuzzy | keep 'fuzzy' marked messages | help + man |
--no-obsolete | remove obsolete #~ messages | help + man |
--only-obsolete | keep obsolete #~ messages | help + man |
--set-fuzzy | set all messages 'fuzzy' | help + man |
--clear-fuzzy | set all messages non-'fuzzy' | help + man |
--set-obsolete | set all messages obsolete | help + man |
--clear-obsolete | set all messages non-obsolete | help + man |
--previous | when setting 'fuzzy', keep previous msgids of translated messages. | help + man |
--clear-previous | remove the "previous msgid" from all messages | help + man |
--empty | when removing 'fuzzy', also set msgstr empty | help + man |
--only-file FILE.po | manipulate only entries listed in FILE.po | help + man |
--ignore-file FILE.po | manipulate only entries not listed in FILE.po | help + man |
--fuzzy | synonym for --only-fuzzy --clear-fuzzy | help + man |
--obsolete | synonym for --only-obsolete --clear-obsolete | help + man |
-P, --properties-input | input file is in Java .properties syntax | help + man |
--stringtable-input | input file is in NeXTstep/GNUstep .strings syntax | help + man |
--color | use colors and other text attributes always | help + man |
--style STYLEFILE | specify CSS style rule file for --color | help + man |
-e, --no-escape | do not use C escapes in output (default) | help + man |
-E, --escape | use C escapes in output, no extended chars | help + man |
--force-po | write PO file even if empty | help + man |
-i, --indent | write the .po file using indented style | help + man |
--no-location | do not write '#: filename:line' lines | help + man |
-n, --add-location | generate '#: filename:line' lines (default) | help + man |
--strict | write out strict Uniforum conforming .po file | help + man |
-p, --properties-output | write out a Java .properties file | help + man |
--stringtable-output | write out a NeXTstep/GNUstep .strings file | help + man |
-w, --width NUMBER | set output page width | help + man |
--no-wrap | do not break long message lines, longer than the output page width, into several lines | help + man |
-s, --sort-output | generate sorted output | help + man |
-F, --sort-by-file | sort output by file location | help + man |
-h, --help | display this help and exit | help + man |
-V, --version | output version information and exit | help + man |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.