MSGATTRIB(1)                         GNU                        MSGATTRIB(1)

NAME         top

       msgattrib - attribute matching and manipulation on message catalog

SYNOPSIS         top

       msgattrib [OPTION] [INPUTFILE]

DESCRIPTION         top

       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

   Input file location:
              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:
              keep translated, remove untranslated messages

              keep untranslated, remove translated messages

              remove 'fuzzy' marked messages

              keep 'fuzzy' marked messages

              remove obsolete #~ messages

              keep obsolete #~ messages

   Attribute manipulation:
              set all messages 'fuzzy'

              set all messages non-'fuzzy'

              set all messages obsolete

              set all messages non-obsolete

              when setting 'fuzzy', keep previous msgids of translated

              remove the "previous msgid" from all messages

              when removing 'fuzzy', also set msgstr empty

              manipulate only entries listed in FILE.po

              manipulate only entries not listed in FILE.po

              synonym for --only-fuzzy --clear-fuzzy

              synonym for --only-obsolete --clear-obsolete

   Input file syntax:
       -P, --properties-input
              input file is in Java .properties syntax

              input file is in NeXTstep/GNUstep .strings syntax

   Output details:
              use colors and other text attributes always

              use colors and other text attributes if WHEN.  WHEN may be
              'always', 'never', 'auto', or 'html'.

              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

              write PO file even if empty

       -i, --indent
              write the .po file using indented style

              do not write '#: filename:line' lines

       -n, --add-location
              generate '#: filename:line' lines (default)

              write out strict Uniforum conforming .po file

       -p, --properties-output
              write out a Java .properties file

              write out a NeXTstep/GNUstep .strings file

       -w, --width=NUMBER
              set output page width

              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

AUTHOR         top

       Written by Bruno Haible.

REPORTING BUGS         top

       Report bugs to <>.

COPYRIGHT         top

       Copyright © 2001-2016 Free Software Foundation, Inc.  License GPLv3+:
       GNU GPL version 3 or later <>
       This is free software: you are free to change and redistribute it.
       There is NO WARRANTY, to the extent permitted by law.

SEE ALSO         top

       The full documentation for msgattrib is maintained as a Texinfo
       manual.  If the info and msgattrib programs are properly installed at
       your site, the command

              info msgattrib

       should give you access to the complete manual.

COLOPHON         top

       This page is part of the gettext (message translation) project.
       Information about the project can be found at 
       ⟨⟩.  If you have a bug report for
       this manual page, see ⟨⟩.
       This page was obtained from the project's upstream Git repository
       ⟨git://⟩ on 2018-02-02.  (At that
       time, the date of the most recent commit that was found in the repos‐
       itory was 2018-01-27.)  If you discover any rendering problems in
       this HTML version of the page, or you believe there is a better or
       more up-to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not part
       of the original manual page), send a mail to

GNU gettext-tools 2016                     MSGATTRIB(1)