<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.52b
- from gettext.texi on 6 June 2010 -->
+ from gettext.texi on 7 January 2014 -->
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<TITLE>GNU gettext utilities - 9 Manipulating PO Files</TITLE>
<H1><A NAME="SEC79" HREF="gettext_toc.html#TOC79">9 Manipulating PO Files</A></H1>
<P>
-<A NAME="IDX534"></A>
+<A NAME="IDX540"></A>
</P>
<P>
</P>
<P>
-<A NAME="IDX535"></A>
+<A NAME="IDX541"></A>
When merging two packages into a single package, the resulting POT file
will be the concatenation of the two packages' POT files. Thus the
maintainer must concatenate the two existing package translations into
</P>
<P>
-<A NAME="IDX536"></A>
+<A NAME="IDX542"></A>
When a translator takes over the translation job from another translator,
but she uses a different character encoding in her locale, she will
convert the catalog to her character encoding. This is best done through
</P>
<P>
-<A NAME="IDX537"></A>
-<A NAME="IDX538"></A>
+<A NAME="IDX543"></A>
+<A NAME="IDX544"></A>
When a translator wants to adjust some translation catalog for a special
dialect or orthography -- for example, German as written in Switzerland
versus German as written in Germany -- she needs to apply some text
</P>
<P>
-<A NAME="IDX539"></A>
+<A NAME="IDX545"></A>
When a translator wants to check her translations, for example according
to orthography rules or using a non-interactive spell checker, she can do
so using the <SAMP>‘msgexec’</SAMP> program.
</P>
<P>
-<A NAME="IDX540"></A>
+<A NAME="IDX546"></A>
When third party tools create PO or POT files, sometimes duplicates cannot
be avoided. But the GNU <CODE>gettext</CODE> tools give an error when they
encounter duplicate msgids in the same file and in the same domain.
</P>
<P>
-<A NAME="IDX541"></A>
+<A NAME="IDX547"></A>
<SAMP>‘msgattrib’</SAMP> can be used to select and extract only the fuzzy
or untranslated messages of a translation catalog.
<H2><A NAME="SEC80" HREF="gettext_toc.html#TOC80">9.1 Invoking the <CODE>msgcat</CODE> Program</A></H2>
<P>
-<A NAME="IDX542"></A>
-<A NAME="IDX543"></A>
+<A NAME="IDX548"></A>
+<A NAME="IDX549"></A>
<PRE>
msgcat [<VAR>option</VAR>] [<VAR>inputfile</VAR>]...
</PRE>
<P>
-<A NAME="IDX544"></A>
-<A NAME="IDX545"></A>
+<A NAME="IDX550"></A>
+<A NAME="IDX551"></A>
The <CODE>msgcat</CODE> program concatenates and merges the specified PO files.
It finds messages which are common to two or more of the specified PO files.
By using the <CODE>--more-than</CODE> option, greater commonality may be requested
before messages are printed. Conversely, the <CODE>--less-than</CODE> option may be
used to specify less commonality before messages are printed (i.e.
<SAMP>‘--less-than=2’</SAMP> will only print the unique messages). Translations,
-comments and extract comments will be cumulated, except that if
-<CODE>--use-first</CODE> is specified, they will be taken from the first PO file
-to define them. File positions from all PO files will be cumulated.
+comments, extracted comments, and file positions will be cumulated, except that
+if <CODE>--use-first</CODE> is specified, they will be taken from the first PO file
+to define them.
</P>
<DD>
<DT><SAMP>‘--files-from=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX546"></A>
-<A NAME="IDX547"></A>
+<A NAME="IDX552"></A>
+<A NAME="IDX553"></A>
Read the names of the input files from <VAR>file</VAR> instead of getting
them from the command line.
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX548"></A>
-<A NAME="IDX549"></A>
+<A NAME="IDX554"></A>
+<A NAME="IDX555"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX550"></A>
-<A NAME="IDX551"></A>
+<A NAME="IDX556"></A>
+<A NAME="IDX557"></A>
Write output to specified file.
</DL>
<P>
-<A NAME="IDX552"></A>
+<A NAME="IDX558"></A>
The results are written to standard output if no output file is specified
or if it is <SAMP>‘-’</SAMP>.
<DD>
<DT><SAMP>‘--less-than=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX553"></A>
-<A NAME="IDX554"></A>
+<A NAME="IDX559"></A>
+<A NAME="IDX560"></A>
Print messages with less than <VAR>number</VAR> definitions, defaults to infinite
if not set.
<DD>
<DT><SAMP>‘--more-than=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX555"></A>
-<A NAME="IDX556"></A>
+<A NAME="IDX561"></A>
+<A NAME="IDX562"></A>
Print messages with more than <VAR>number</VAR> definitions, defaults to 0 if not
set.
<DD>
<DT><SAMP>‘--unique’</SAMP>
<DD>
-<A NAME="IDX557"></A>
-<A NAME="IDX558"></A>
+<A NAME="IDX563"></A>
+<A NAME="IDX564"></A>
Shorthand for <SAMP>‘--less-than=2’</SAMP>. Requests that only unique messages be
printed.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX559"></A>
-<A NAME="IDX560"></A>
+<A NAME="IDX565"></A>
+<A NAME="IDX566"></A>
Assume the input files are Java ResourceBundles in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX561"></A>
+<A NAME="IDX567"></A>
Assume the input files are NeXTstep/GNUstep localized resource files in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--to-code=<VAR>name</VAR>’</SAMP>
<DD>
-<A NAME="IDX562"></A>
-<A NAME="IDX563"></A>
+<A NAME="IDX568"></A>
+<A NAME="IDX569"></A>
Specify encoding for output.
<DT><SAMP>‘--use-first’</SAMP>
<DD>
-<A NAME="IDX564"></A>
+<A NAME="IDX570"></A>
Use first available translation for each message. Don't merge several
translations into one.
<DT><SAMP>‘--lang=<VAR>catalogname</VAR>’</SAMP>
<DD>
-<A NAME="IDX565"></A>
+<A NAME="IDX571"></A>
Specify the <SAMP>‘Language’</SAMP> field to be used in the header entry. See
section <A HREF="gettext_6.html#SEC44">6.2 Filling in the Header Entry</A> for the meaning of this field. Note: The
<SAMP>‘Language-Team’</SAMP> and <SAMP>‘Plural-Forms’</SAMP> fields are left unchanged.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX566"></A>
+<A NAME="IDX572"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX567"></A>
+<A NAME="IDX573"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX568"></A>
+<A NAME="IDX574"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX569"></A>
-<A NAME="IDX570"></A>
+<A NAME="IDX575"></A>
+<A NAME="IDX576"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX571"></A>
+<A NAME="IDX577"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘-n’</SAMP>
<DD>
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX572"></A>
-<A NAME="IDX573"></A>
+<A NAME="IDX578"></A>
+<A NAME="IDX579"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX574"></A>
+<A NAME="IDX580"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX575"></A>
-<A NAME="IDX576"></A>
+<A NAME="IDX581"></A>
+<A NAME="IDX582"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX577"></A>
+<A NAME="IDX583"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX578"></A>
-<A NAME="IDX579"></A>
+<A NAME="IDX584"></A>
+<A NAME="IDX585"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX580"></A>
+<A NAME="IDX586"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX581"></A>
-<A NAME="IDX582"></A>
-<A NAME="IDX583"></A>
+<A NAME="IDX587"></A>
+<A NAME="IDX588"></A>
+<A NAME="IDX589"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX584"></A>
-<A NAME="IDX585"></A>
+<A NAME="IDX590"></A>
+<A NAME="IDX591"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX586"></A>
-<A NAME="IDX587"></A>
+<A NAME="IDX592"></A>
+<A NAME="IDX593"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX588"></A>
-<A NAME="IDX589"></A>
+<A NAME="IDX594"></A>
+<A NAME="IDX595"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC87" HREF="gettext_toc.html#TOC87">9.2 Invoking the <CODE>msgconv</CODE> Program</A></H2>
<P>
-<A NAME="IDX590"></A>
-<A NAME="IDX591"></A>
+<A NAME="IDX596"></A>
+<A NAME="IDX597"></A>
<PRE>
msgconv [<VAR>option</VAR>] [<VAR>inputfile</VAR>]
</PRE>
<P>
-<A NAME="IDX592"></A>
+<A NAME="IDX598"></A>
The <CODE>msgconv</CODE> program converts a translation catalog to a different
character encoding.
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX593"></A>
-<A NAME="IDX594"></A>
+<A NAME="IDX599"></A>
+<A NAME="IDX600"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX595"></A>
-<A NAME="IDX596"></A>
+<A NAME="IDX601"></A>
+<A NAME="IDX602"></A>
Write output to specified file.
</DL>
<DD>
<DT><SAMP>‘--to-code=<VAR>name</VAR>’</SAMP>
<DD>
-<A NAME="IDX597"></A>
-<A NAME="IDX598"></A>
+<A NAME="IDX603"></A>
+<A NAME="IDX604"></A>
Specify encoding for output.
</DL>
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX599"></A>
-<A NAME="IDX600"></A>
+<A NAME="IDX605"></A>
+<A NAME="IDX606"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX601"></A>
+<A NAME="IDX607"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX602"></A>
+<A NAME="IDX608"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX603"></A>
+<A NAME="IDX609"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX604"></A>
+<A NAME="IDX610"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX605"></A>
-<A NAME="IDX606"></A>
+<A NAME="IDX611"></A>
+<A NAME="IDX612"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX607"></A>
+<A NAME="IDX613"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX608"></A>
+<A NAME="IDX614"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX609"></A>
+<A NAME="IDX615"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX610"></A>
-<A NAME="IDX611"></A>
+<A NAME="IDX616"></A>
+<A NAME="IDX617"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX612"></A>
+<A NAME="IDX618"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX613"></A>
-<A NAME="IDX614"></A>
+<A NAME="IDX619"></A>
+<A NAME="IDX620"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX615"></A>
+<A NAME="IDX621"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX616"></A>
-<A NAME="IDX617"></A>
+<A NAME="IDX622"></A>
+<A NAME="IDX623"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX618"></A>
-<A NAME="IDX619"></A>
+<A NAME="IDX624"></A>
+<A NAME="IDX625"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX620"></A>
-<A NAME="IDX621"></A>
+<A NAME="IDX626"></A>
+<A NAME="IDX627"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX622"></A>
-<A NAME="IDX623"></A>
+<A NAME="IDX628"></A>
+<A NAME="IDX629"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC94" HREF="gettext_toc.html#TOC94">9.3 Invoking the <CODE>msggrep</CODE> Program</A></H2>
<P>
-<A NAME="IDX624"></A>
-<A NAME="IDX625"></A>
+<A NAME="IDX630"></A>
+<A NAME="IDX631"></A>
<PRE>
msggrep [<VAR>option</VAR>] [<VAR>inputfile</VAR>]
</PRE>
<P>
-<A NAME="IDX626"></A>
+<A NAME="IDX632"></A>
The <CODE>msggrep</CODE> program extracts all messages of a translation catalog
that match a given pattern or belong to some given source files.
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX627"></A>
-<A NAME="IDX628"></A>
+<A NAME="IDX633"></A>
+<A NAME="IDX634"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX629"></A>
-<A NAME="IDX630"></A>
+<A NAME="IDX635"></A>
+<A NAME="IDX636"></A>
Write output to specified file.
</DL>
<DD>
<DT><SAMP>‘--location=<VAR>sourcefile</VAR>’</SAMP>
<DD>
-<A NAME="IDX631"></A>
-<A NAME="IDX632"></A>
+<A NAME="IDX637"></A>
+<A NAME="IDX638"></A>
Select messages extracted from <VAR>sourcefile</VAR>. <VAR>sourcefile</VAR> can be
either a literal file name or a wildcard pattern.
<DD>
<DT><SAMP>‘--domain=<VAR>domainname</VAR>’</SAMP>
<DD>
-<A NAME="IDX633"></A>
-<A NAME="IDX634"></A>
+<A NAME="IDX639"></A>
+<A NAME="IDX640"></A>
Select messages belonging to domain <VAR>domainname</VAR>.
<DT><SAMP>‘-J’</SAMP>
<DD>
<DT><SAMP>‘--msgctxt’</SAMP>
<DD>
-<A NAME="IDX635"></A>
-<A NAME="IDX636"></A>
+<A NAME="IDX641"></A>
+<A NAME="IDX642"></A>
Start of patterns for the msgctxt.
<DT><SAMP>‘-K’</SAMP>
<DD>
<DT><SAMP>‘--msgid’</SAMP>
<DD>
-<A NAME="IDX637"></A>
-<A NAME="IDX638"></A>
+<A NAME="IDX643"></A>
+<A NAME="IDX644"></A>
Start of patterns for the msgid.
<DT><SAMP>‘-T’</SAMP>
<DD>
<DT><SAMP>‘--msgstr’</SAMP>
<DD>
-<A NAME="IDX639"></A>
-<A NAME="IDX640"></A>
+<A NAME="IDX645"></A>
+<A NAME="IDX646"></A>
Start of patterns for the msgstr.
<DT><SAMP>‘-C’</SAMP>
<DD>
<DT><SAMP>‘--comment’</SAMP>
<DD>
-<A NAME="IDX641"></A>
-<A NAME="IDX642"></A>
+<A NAME="IDX647"></A>
+<A NAME="IDX648"></A>
Start of patterns for the translator's comment.
<DT><SAMP>‘-X’</SAMP>
<DD>
<DT><SAMP>‘--extracted-comment’</SAMP>
<DD>
-<A NAME="IDX643"></A>
-<A NAME="IDX644"></A>
+<A NAME="IDX649"></A>
+<A NAME="IDX650"></A>
Start of patterns for the extracted comments.
<DT><SAMP>‘-E’</SAMP>
<DD>
<DT><SAMP>‘--extended-regexp’</SAMP>
<DD>
-<A NAME="IDX645"></A>
-<A NAME="IDX646"></A>
+<A NAME="IDX651"></A>
+<A NAME="IDX652"></A>
Specify that <VAR>pattern</VAR> is an extended regular expression.
<DT><SAMP>‘-F’</SAMP>
<DD>
<DT><SAMP>‘--fixed-strings’</SAMP>
<DD>
-<A NAME="IDX647"></A>
-<A NAME="IDX648"></A>
+<A NAME="IDX653"></A>
+<A NAME="IDX654"></A>
Specify that <VAR>pattern</VAR> is a set of newline-separated strings.
<DT><SAMP>‘-e <VAR>pattern</VAR>’</SAMP>
<DD>
<DT><SAMP>‘--regexp=<VAR>pattern</VAR>’</SAMP>
<DD>
-<A NAME="IDX649"></A>
-<A NAME="IDX650"></A>
+<A NAME="IDX655"></A>
+<A NAME="IDX656"></A>
Use <VAR>pattern</VAR> as a regular expression.
<DT><SAMP>‘-f <VAR>file</VAR>’</SAMP>
<DD>
<DT><SAMP>‘--file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX651"></A>
-<A NAME="IDX652"></A>
+<A NAME="IDX657"></A>
+<A NAME="IDX658"></A>
Obtain <VAR>pattern</VAR> from <VAR>file</VAR>.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--ignore-case’</SAMP>
<DD>
-<A NAME="IDX653"></A>
-<A NAME="IDX654"></A>
+<A NAME="IDX659"></A>
+<A NAME="IDX660"></A>
Ignore case distinctions.
<DT><SAMP>‘-v’</SAMP>
<DD>
<DT><SAMP>‘--invert-match’</SAMP>
<DD>
-<A NAME="IDX655"></A>
-<A NAME="IDX656"></A>
+<A NAME="IDX661"></A>
+<A NAME="IDX662"></A>
Output only the messages that do not match any selection criterion, instead
of the messages that match a selection criterion.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX657"></A>
-<A NAME="IDX658"></A>
+<A NAME="IDX663"></A>
+<A NAME="IDX664"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX659"></A>
+<A NAME="IDX665"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX660"></A>
+<A NAME="IDX666"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX661"></A>
+<A NAME="IDX667"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX662"></A>
+<A NAME="IDX668"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX663"></A>
+<A NAME="IDX669"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX664"></A>
+<A NAME="IDX670"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX665"></A>
+<A NAME="IDX671"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX666"></A>
+<A NAME="IDX672"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX667"></A>
-<A NAME="IDX668"></A>
+<A NAME="IDX673"></A>
+<A NAME="IDX674"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX669"></A>
+<A NAME="IDX675"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX670"></A>
-<A NAME="IDX671"></A>
+<A NAME="IDX676"></A>
+<A NAME="IDX677"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX672"></A>
+<A NAME="IDX678"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX673"></A>
+<A NAME="IDX679"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX674"></A>
+<A NAME="IDX680"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX675"></A>
-<A NAME="IDX676"></A>
+<A NAME="IDX681"></A>
+<A NAME="IDX682"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX677"></A>
-<A NAME="IDX678"></A>
+<A NAME="IDX683"></A>
+<A NAME="IDX684"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC102" HREF="gettext_toc.html#TOC102">9.4 Invoking the <CODE>msgfilter</CODE> Program</A></H2>
<P>
-<A NAME="IDX679"></A>
-<A NAME="IDX680"></A>
+<A NAME="IDX685"></A>
+<A NAME="IDX686"></A>
<PRE>
msgfilter [<VAR>option</VAR>] <VAR>filter</VAR> [<VAR>filter-option</VAR>]
</PRE>
<P>
-<A NAME="IDX681"></A>
+<A NAME="IDX687"></A>
The <CODE>msgfilter</CODE> program applies a filter to all translations of a
translation catalog.
</P>
<P>
-<A NAME="IDX682"></A>
-<A NAME="IDX683"></A>
-<A NAME="IDX684"></A>
+<A NAME="IDX688"></A>
+<A NAME="IDX689"></A>
+<A NAME="IDX690"></A>
During each <VAR>filter</VAR> invocation, the environment variable
<CODE>MSGFILTER_MSGID</CODE> is bound to the message's msgid, and the environment
variable <CODE>MSGFILTER_LOCATION</CODE> is bound to the location in the PO file
<DD>
<DT><SAMP>‘--input=<VAR>inputfile</VAR>’</SAMP>
<DD>
-<A NAME="IDX685"></A>
-<A NAME="IDX686"></A>
+<A NAME="IDX691"></A>
+<A NAME="IDX692"></A>
Input PO file.
<DT><SAMP>‘-D <VAR>directory</VAR>’</SAMP>
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX687"></A>
-<A NAME="IDX688"></A>
+<A NAME="IDX693"></A>
+<A NAME="IDX694"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX689"></A>
-<A NAME="IDX690"></A>
+<A NAME="IDX695"></A>
+<A NAME="IDX696"></A>
Write output to specified file.
</DL>
</P>
<P>
-<A NAME="IDX691"></A>
+<A NAME="IDX697"></A>
Note: If the filter is not a built-in filter, you have to care about encodings:
It is your responsibility to ensure that the <VAR>filter</VAR> can cope
with input encoded in the translation catalog's encoding. If the
</P>
<P>
-<A NAME="IDX692"></A>
+<A NAME="IDX698"></A>
Note: Most translations in a translation catalog don't end with a newline
character. For this reason, it is important that the <VAR>filter</VAR>
recognizes its last input line even if it ends without a newline, and that
<DD>
<DT><SAMP>‘--expression=<VAR>script</VAR>’</SAMP>
<DD>
-<A NAME="IDX693"></A>
-<A NAME="IDX694"></A>
+<A NAME="IDX699"></A>
+<A NAME="IDX700"></A>
Add <VAR>script</VAR> to the commands to be executed.
<DT><SAMP>‘-f <VAR>scriptfile</VAR>’</SAMP>
<DD>
<DT><SAMP>‘--file=<VAR>scriptfile</VAR>’</SAMP>
<DD>
-<A NAME="IDX695"></A>
-<A NAME="IDX696"></A>
+<A NAME="IDX701"></A>
+<A NAME="IDX702"></A>
Add the contents of <VAR>scriptfile</VAR> to the commands to be executed.
<DT><SAMP>‘-n’</SAMP>
<DD>
<DT><SAMP>‘--silent’</SAMP>
<DD>
-<A NAME="IDX697"></A>
-<A NAME="IDX698"></A>
-<A NAME="IDX699"></A>
+<A NAME="IDX703"></A>
+<A NAME="IDX704"></A>
+<A NAME="IDX705"></A>
Suppress automatic printing of pattern space.
</DL>
<H3><A NAME="SEC107" HREF="gettext_toc.html#TOC107">9.4.5 Built-in <VAR>filter</VAR>s</A></H3>
<P>
-<A NAME="IDX700"></A>
-<A NAME="IDX701"></A>
+<A NAME="IDX706"></A>
+<A NAME="IDX707"></A>
The filter <SAMP>‘recode-sr-latin’</SAMP> is recognized as a built-in filter.
The command <SAMP>‘recode-sr-latin’</SAMP> converts Serbian text, written in the
Cyrillic script, to the Latin script.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX702"></A>
-<A NAME="IDX703"></A>
+<A NAME="IDX708"></A>
+<A NAME="IDX709"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX704"></A>
+<A NAME="IDX710"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX705"></A>
+<A NAME="IDX711"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX706"></A>
+<A NAME="IDX712"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX707"></A>
+<A NAME="IDX713"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX708"></A>
+<A NAME="IDX714"></A>
Write the .po file using indented style.
<DT><SAMP>‘--keep-header’</SAMP>
<DD>
-<A NAME="IDX709"></A>
+<A NAME="IDX715"></A>
Keep the header entry, i.e. the message with <SAMP>‘msgid ""’</SAMP>, unmodified,
instead of filtering it. By default, the header entry is subject to
filtering like any other message.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX710"></A>
+<A NAME="IDX716"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX711"></A>
+<A NAME="IDX717"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX712"></A>
+<A NAME="IDX718"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX713"></A>
-<A NAME="IDX714"></A>
+<A NAME="IDX719"></A>
+<A NAME="IDX720"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX715"></A>
+<A NAME="IDX721"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX716"></A>
-<A NAME="IDX717"></A>
+<A NAME="IDX722"></A>
+<A NAME="IDX723"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX718"></A>
+<A NAME="IDX724"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX719"></A>
-<A NAME="IDX720"></A>
+<A NAME="IDX725"></A>
+<A NAME="IDX726"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX721"></A>
-<A NAME="IDX722"></A>
+<A NAME="IDX727"></A>
+<A NAME="IDX728"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX723"></A>
-<A NAME="IDX724"></A>
+<A NAME="IDX729"></A>
+<A NAME="IDX730"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX725"></A>
-<A NAME="IDX726"></A>
+<A NAME="IDX731"></A>
+<A NAME="IDX732"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC112" HREF="gettext_toc.html#TOC112">9.5 Invoking the <CODE>msguniq</CODE> Program</A></H2>
<P>
-<A NAME="IDX727"></A>
-<A NAME="IDX728"></A>
+<A NAME="IDX733"></A>
+<A NAME="IDX734"></A>
<PRE>
msguniq [<VAR>option</VAR>] [<VAR>inputfile</VAR>]
</PRE>
<P>
-<A NAME="IDX729"></A>
-<A NAME="IDX730"></A>
+<A NAME="IDX735"></A>
+<A NAME="IDX736"></A>
The <CODE>msguniq</CODE> program unifies duplicate translations in a translation
catalog. It finds duplicate translations of the same message ID. Such
duplicates are invalid input for other programs like <CODE>msgfmt</CODE>,
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX731"></A>
-<A NAME="IDX732"></A>
+<A NAME="IDX737"></A>
+<A NAME="IDX738"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX733"></A>
-<A NAME="IDX734"></A>
+<A NAME="IDX739"></A>
+<A NAME="IDX740"></A>
Write output to specified file.
</DL>
<DD>
<DT><SAMP>‘--repeated’</SAMP>
<DD>
-<A NAME="IDX735"></A>
-<A NAME="IDX736"></A>
+<A NAME="IDX741"></A>
+<A NAME="IDX742"></A>
Print only duplicates.
<DT><SAMP>‘-u’</SAMP>
<DD>
<DT><SAMP>‘--unique’</SAMP>
<DD>
-<A NAME="IDX737"></A>
-<A NAME="IDX738"></A>
+<A NAME="IDX743"></A>
+<A NAME="IDX744"></A>
Print only unique messages, discard duplicates.
</DL>
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX739"></A>
-<A NAME="IDX740"></A>
+<A NAME="IDX745"></A>
+<A NAME="IDX746"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX741"></A>
+<A NAME="IDX747"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--to-code=<VAR>name</VAR>’</SAMP>
<DD>
-<A NAME="IDX742"></A>
-<A NAME="IDX743"></A>
+<A NAME="IDX748"></A>
+<A NAME="IDX749"></A>
Specify encoding for output.
<DT><SAMP>‘--use-first’</SAMP>
<DD>
-<A NAME="IDX744"></A>
+<A NAME="IDX750"></A>
Use first available translation for each message. Don't merge several
translations into one.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX745"></A>
+<A NAME="IDX751"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX746"></A>
+<A NAME="IDX752"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX747"></A>
+<A NAME="IDX753"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX748"></A>
-<A NAME="IDX749"></A>
+<A NAME="IDX754"></A>
+<A NAME="IDX755"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX750"></A>
+<A NAME="IDX756"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘-n’</SAMP>
<DD>
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX751"></A>
-<A NAME="IDX752"></A>
+<A NAME="IDX757"></A>
+<A NAME="IDX758"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX753"></A>
+<A NAME="IDX759"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX754"></A>
-<A NAME="IDX755"></A>
+<A NAME="IDX760"></A>
+<A NAME="IDX761"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX756"></A>
+<A NAME="IDX762"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX757"></A>
-<A NAME="IDX758"></A>
+<A NAME="IDX763"></A>
+<A NAME="IDX764"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX759"></A>
+<A NAME="IDX765"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX760"></A>
-<A NAME="IDX761"></A>
+<A NAME="IDX766"></A>
+<A NAME="IDX767"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX762"></A>
-<A NAME="IDX763"></A>
+<A NAME="IDX768"></A>
+<A NAME="IDX769"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX764"></A>
-<A NAME="IDX765"></A>
+<A NAME="IDX770"></A>
+<A NAME="IDX771"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX766"></A>
-<A NAME="IDX767"></A>
+<A NAME="IDX772"></A>
+<A NAME="IDX773"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC119" HREF="gettext_toc.html#TOC119">9.6 Invoking the <CODE>msgcomm</CODE> Program</A></H2>
<P>
-<A NAME="IDX768"></A>
-<A NAME="IDX769"></A>
+<A NAME="IDX774"></A>
+<A NAME="IDX775"></A>
<PRE>
msgcomm [<VAR>option</VAR>] [<VAR>inputfile</VAR>]...
</PRE>
<P>
-<A NAME="IDX770"></A>
+<A NAME="IDX776"></A>
The <CODE>msgcomm</CODE> program finds messages which are common to two or more
of the specified PO files.
By using the <CODE>--more-than</CODE> option, greater commonality may be requested
before messages are printed. Conversely, the <CODE>--less-than</CODE> option may be
used to specify less commonality before messages are printed (i.e.
<SAMP>‘--less-than=2’</SAMP> will only print the unique messages). Translations,
-comments and extract comments will be preserved, but only from the first
+comments and extracted comments will be preserved, but only from the first
PO file to define them. File positions from all PO files will be
cumulated.
<DD>
<DT><SAMP>‘--files-from=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX771"></A>
-<A NAME="IDX772"></A>
+<A NAME="IDX777"></A>
+<A NAME="IDX778"></A>
Read the names of the input files from <VAR>file</VAR> instead of getting
them from the command line.
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX773"></A>
-<A NAME="IDX774"></A>
+<A NAME="IDX779"></A>
+<A NAME="IDX780"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX775"></A>
-<A NAME="IDX776"></A>
+<A NAME="IDX781"></A>
+<A NAME="IDX782"></A>
Write output to specified file.
</DL>
<DD>
<DT><SAMP>‘--less-than=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX777"></A>
-<A NAME="IDX778"></A>
+<A NAME="IDX783"></A>
+<A NAME="IDX784"></A>
Print messages with less than <VAR>number</VAR> definitions, defaults to infinite
if not set.
<DD>
<DT><SAMP>‘--more-than=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX779"></A>
-<A NAME="IDX780"></A>
+<A NAME="IDX785"></A>
+<A NAME="IDX786"></A>
Print messages with more than <VAR>number</VAR> definitions, defaults to 1 if not
set.
<DD>
<DT><SAMP>‘--unique’</SAMP>
<DD>
-<A NAME="IDX781"></A>
-<A NAME="IDX782"></A>
+<A NAME="IDX787"></A>
+<A NAME="IDX788"></A>
Shorthand for <SAMP>‘--less-than=2’</SAMP>. Requests that only unique messages be
printed.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX783"></A>
-<A NAME="IDX784"></A>
+<A NAME="IDX789"></A>
+<A NAME="IDX790"></A>
Assume the input files are Java ResourceBundles in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX785"></A>
+<A NAME="IDX791"></A>
Assume the input files are NeXTstep/GNUstep localized resource files in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX786"></A>
+<A NAME="IDX792"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX787"></A>
+<A NAME="IDX793"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX788"></A>
+<A NAME="IDX794"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX789"></A>
-<A NAME="IDX790"></A>
+<A NAME="IDX795"></A>
+<A NAME="IDX796"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX791"></A>
+<A NAME="IDX797"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘-n’</SAMP>
<DD>
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX792"></A>
-<A NAME="IDX793"></A>
+<A NAME="IDX798"></A>
+<A NAME="IDX799"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX794"></A>
+<A NAME="IDX800"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX795"></A>
-<A NAME="IDX796"></A>
+<A NAME="IDX801"></A>
+<A NAME="IDX802"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX797"></A>
+<A NAME="IDX803"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX798"></A>
-<A NAME="IDX799"></A>
+<A NAME="IDX804"></A>
+<A NAME="IDX805"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX800"></A>
+<A NAME="IDX806"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX801"></A>
-<A NAME="IDX802"></A>
+<A NAME="IDX807"></A>
+<A NAME="IDX808"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX803"></A>
-<A NAME="IDX804"></A>
+<A NAME="IDX809"></A>
+<A NAME="IDX810"></A>
Sort output by file location.
<DT><SAMP>‘--omit-header’</SAMP>
<DD>
-<A NAME="IDX805"></A>
+<A NAME="IDX811"></A>
Don't write header with <SAMP>‘msgid ""’</SAMP> entry.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX806"></A>
-<A NAME="IDX807"></A>
+<A NAME="IDX812"></A>
+<A NAME="IDX813"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX808"></A>
-<A NAME="IDX809"></A>
+<A NAME="IDX814"></A>
+<A NAME="IDX815"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC126" HREF="gettext_toc.html#TOC126">9.7 Invoking the <CODE>msgcmp</CODE> Program</A></H2>
-<P>
-<A NAME="IDX810"></A>
-<A NAME="IDX811"></A>
+<P>
+<A NAME="IDX816"></A>
+<A NAME="IDX817"></A>
<PRE>
msgcmp [<VAR>option</VAR>] <VAR>def</VAR>.po <VAR>ref</VAR>.pot
</PRE>
<P>
-<A NAME="IDX812"></A>
+<A NAME="IDX818"></A>
The <CODE>msgcmp</CODE> program compares two Uniforum style .po files to check that
both contain the same set of msgid strings. The <VAR>def</VAR>.po file is an
existing PO file with the translations. The <VAR>ref</VAR>.pot file is the last
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX813"></A>
-<A NAME="IDX814"></A>
+<A NAME="IDX819"></A>
+<A NAME="IDX820"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories.
<DD>
<DT><SAMP>‘--multi-domain’</SAMP>
<DD>
-<A NAME="IDX815"></A>
-<A NAME="IDX816"></A>
+<A NAME="IDX821"></A>
+<A NAME="IDX822"></A>
Apply <VAR>ref</VAR>.pot to each of the domains in <VAR>def</VAR>.po.
<DT><SAMP>‘-N’</SAMP>
<DD>
<DT><SAMP>‘--no-fuzzy-matching’</SAMP>
<DD>
-<A NAME="IDX817"></A>
-<A NAME="IDX818"></A>
+<A NAME="IDX823"></A>
+<A NAME="IDX824"></A>
Do not use fuzzy matching when an exact match is not found. This may speed
up the operation considerably.
<DT><SAMP>‘--use-fuzzy’</SAMP>
<DD>
-<A NAME="IDX819"></A>
+<A NAME="IDX825"></A>
Consider fuzzy messages in the <VAR>def</VAR>.po file like translated messages.
Note that using this option is usually wrong, because fuzzy messages are
exactly those which have not been validated by a human translator.
<DT><SAMP>‘--use-untranslated’</SAMP>
<DD>
-<A NAME="IDX820"></A>
+<A NAME="IDX826"></A>
Consider untranslated messages in the <VAR>def</VAR>.po file like translated
messages. Note that using this option is usually wrong.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX821"></A>
-<A NAME="IDX822"></A>
+<A NAME="IDX827"></A>
+<A NAME="IDX828"></A>
Assume the input files are Java ResourceBundles in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX823"></A>
+<A NAME="IDX829"></A>
Assume the input files are NeXTstep/GNUstep localized resource files in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX824"></A>
-<A NAME="IDX825"></A>
+<A NAME="IDX830"></A>
+<A NAME="IDX831"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX826"></A>
-<A NAME="IDX827"></A>
+<A NAME="IDX832"></A>
+<A NAME="IDX833"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC131" HREF="gettext_toc.html#TOC131">9.8 Invoking the <CODE>msgattrib</CODE> Program</A></H2>
<P>
-<A NAME="IDX828"></A>
-<A NAME="IDX829"></A>
+<A NAME="IDX834"></A>
+<A NAME="IDX835"></A>
<PRE>
msgattrib [<VAR>option</VAR>] [<VAR>inputfile</VAR>]
</PRE>
<P>
-<A NAME="IDX830"></A>
-<A NAME="IDX831"></A>
+<A NAME="IDX836"></A>
+<A NAME="IDX837"></A>
The <CODE>msgattrib</CODE> program filters the messages of a translation catalog
according to their attributes, and manipulates the attributes.
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX832"></A>
-<A NAME="IDX833"></A>
+<A NAME="IDX838"></A>
+<A NAME="IDX839"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX834"></A>
-<A NAME="IDX835"></A>
+<A NAME="IDX840"></A>
+<A NAME="IDX841"></A>
Write output to specified file.
</DL>
<DT><SAMP>‘--translated’</SAMP>
<DD>
-<A NAME="IDX836"></A>
+<A NAME="IDX842"></A>
Keep translated messages, remove untranslated messages.
<DT><SAMP>‘--untranslated’</SAMP>
<DD>
-<A NAME="IDX837"></A>
+<A NAME="IDX843"></A>
Keep untranslated messages, remove translated messages.
<DT><SAMP>‘--no-fuzzy’</SAMP>
<DD>
-<A NAME="IDX838"></A>
+<A NAME="IDX844"></A>
Remove
‘fuzzy’
marked messages.
<DT><SAMP>‘--only-fuzzy’</SAMP>
<DD>
-<A NAME="IDX839"></A>
+<A NAME="IDX845"></A>
Keep
‘fuzzy’
marked messages, remove all other messages.
<DT><SAMP>‘--no-obsolete’</SAMP>
<DD>
-<A NAME="IDX840"></A>
+<A NAME="IDX846"></A>
Remove obsolete #~ messages.
<DT><SAMP>‘--only-obsolete’</SAMP>
<DD>
-<A NAME="IDX841"></A>
+<A NAME="IDX847"></A>
Keep obsolete #~ messages, remove all other messages.
</DL>
<H3><A NAME="SEC135" HREF="gettext_toc.html#TOC135">9.8.4 Attribute manipulation</A></H3>
<P>
-<A NAME="IDX842"></A>
+<A NAME="IDX848"></A>
Attributes are modified after the message selection/removal has been
performed. If the <SAMP>‘--only-file’</SAMP> or <SAMP>‘--ignore-file’</SAMP> option is
specified, the attribute modification is applied only to those messages
<DT><SAMP>‘--set-fuzzy’</SAMP>
<DD>
-<A NAME="IDX843"></A>
+<A NAME="IDX849"></A>
Set all messages
‘fuzzy’.
<DT><SAMP>‘--clear-fuzzy’</SAMP>
<DD>
-<A NAME="IDX844"></A>
+<A NAME="IDX850"></A>
Set all messages
non-‘fuzzy’.
<DT><SAMP>‘--set-obsolete’</SAMP>
<DD>
-<A NAME="IDX845"></A>
+<A NAME="IDX851"></A>
Set all messages obsolete.
<DT><SAMP>‘--clear-obsolete’</SAMP>
<DD>
-<A NAME="IDX846"></A>
+<A NAME="IDX852"></A>
Set all messages non-obsolete.
+<DT><SAMP>‘--previous’</SAMP>
+<DD>
+<A NAME="IDX853"></A>
+When setting
+‘fuzzy’
+mark, keep “previous msgid” of translated messages.
+
<DT><SAMP>‘--clear-previous’</SAMP>
<DD>
-<A NAME="IDX847"></A>
+<A NAME="IDX854"></A>
Remove the “previous msgid” (<SAMP>‘#|’</SAMP>) comments from all messages.
<DT><SAMP>‘--only-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX848"></A>
+<A NAME="IDX855"></A>
Limit the attribute changes to entries that are listed in <VAR>file</VAR>.
<VAR>file</VAR> should be a PO or POT file.
<DT><SAMP>‘--ignore-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX849"></A>
+<A NAME="IDX856"></A>
Limit the attribute changes to entries that are not listed in <VAR>file</VAR>.
<VAR>file</VAR> should be a PO or POT file.
<DT><SAMP>‘--fuzzy’</SAMP>
<DD>
-<A NAME="IDX850"></A>
+<A NAME="IDX857"></A>
Synonym for <SAMP>‘--only-fuzzy --clear-fuzzy’</SAMP>: It keeps only the fuzzy
messages and removes their
‘fuzzy’
<DT><SAMP>‘--obsolete’</SAMP>
<DD>
-<A NAME="IDX851"></A>
+<A NAME="IDX858"></A>
Synonym for <SAMP>‘--only-obsolete --clear-obsolete’</SAMP>: It keeps only the
obsolete messages and makes them non-obsolete.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX852"></A>
-<A NAME="IDX853"></A>
+<A NAME="IDX859"></A>
+<A NAME="IDX860"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX854"></A>
+<A NAME="IDX861"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX855"></A>
+<A NAME="IDX862"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX856"></A>
+<A NAME="IDX863"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX857"></A>
+<A NAME="IDX864"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX858"></A>
-<A NAME="IDX859"></A>
+<A NAME="IDX865"></A>
+<A NAME="IDX866"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX860"></A>
+<A NAME="IDX867"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘-n’</SAMP>
<DD>
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX861"></A>
-<A NAME="IDX862"></A>
+<A NAME="IDX868"></A>
+<A NAME="IDX869"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX863"></A>
+<A NAME="IDX870"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX864"></A>
-<A NAME="IDX865"></A>
+<A NAME="IDX871"></A>
+<A NAME="IDX872"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX866"></A>
+<A NAME="IDX873"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX867"></A>
-<A NAME="IDX868"></A>
+<A NAME="IDX874"></A>
+<A NAME="IDX875"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX869"></A>
+<A NAME="IDX876"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX870"></A>
-<A NAME="IDX871"></A>
+<A NAME="IDX877"></A>
+<A NAME="IDX878"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX872"></A>
-<A NAME="IDX873"></A>
+<A NAME="IDX879"></A>
+<A NAME="IDX880"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX874"></A>
-<A NAME="IDX875"></A>
+<A NAME="IDX881"></A>
+<A NAME="IDX882"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX876"></A>
-<A NAME="IDX877"></A>
+<A NAME="IDX883"></A>
+<A NAME="IDX884"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC139" HREF="gettext_toc.html#TOC139">9.9 Invoking the <CODE>msgen</CODE> Program</A></H2>
<P>
-<A NAME="IDX878"></A>
-<A NAME="IDX879"></A>
+<A NAME="IDX885"></A>
+<A NAME="IDX886"></A>
<PRE>
msgen [<VAR>option</VAR>] <VAR>inputfile</VAR>
</PRE>
<P>
-<A NAME="IDX880"></A>
+<A NAME="IDX887"></A>
The <CODE>msgen</CODE> program creates an English translation catalog. The
input file is the last created English PO file, or a PO Template file
(generally created by xgettext). Untranslated entries are assigned a
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX881"></A>
-<A NAME="IDX882"></A>
+<A NAME="IDX888"></A>
+<A NAME="IDX889"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--output-file=<VAR>file</VAR>’</SAMP>
<DD>
-<A NAME="IDX883"></A>
-<A NAME="IDX884"></A>
+<A NAME="IDX890"></A>
+<A NAME="IDX891"></A>
Write output to specified file.
</DL>
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX885"></A>
-<A NAME="IDX886"></A>
+<A NAME="IDX892"></A>
+<A NAME="IDX893"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX887"></A>
+<A NAME="IDX894"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DT><SAMP>‘--lang=<VAR>catalogname</VAR>’</SAMP>
<DD>
-<A NAME="IDX888"></A>
+<A NAME="IDX895"></A>
Specify the <SAMP>‘Language’</SAMP> field to be used in the header entry. See
section <A HREF="gettext_6.html#SEC44">6.2 Filling in the Header Entry</A> for the meaning of this field. Note: The
<SAMP>‘Language-Team’</SAMP> and <SAMP>‘Plural-Forms’</SAMP> fields are not set by this
<DD>
<DT><SAMP>‘--color=<VAR>when</VAR>’</SAMP>
<DD>
-<A NAME="IDX889"></A>
+<A NAME="IDX896"></A>
Specify whether or when to use colors and other text attributes.
See section <A HREF="gettext_9.html#SEC150">9.11.1 The <CODE>--color</CODE> option</A> for details.
<DT><SAMP>‘--style=<VAR>style_file</VAR>’</SAMP>
<DD>
-<A NAME="IDX890"></A>
+<A NAME="IDX897"></A>
Specify the CSS style rule file to use for <CODE>--color</CODE>.
See section <A HREF="gettext_9.html#SEC152">9.11.3 The <CODE>--style</CODE> option</A> for details.
<DT><SAMP>‘--force-po’</SAMP>
<DD>
-<A NAME="IDX891"></A>
+<A NAME="IDX898"></A>
Always write an output file even if it contains no message.
<DT><SAMP>‘-i’</SAMP>
<DD>
<DT><SAMP>‘--indent’</SAMP>
<DD>
-<A NAME="IDX892"></A>
-<A NAME="IDX893"></A>
+<A NAME="IDX899"></A>
+<A NAME="IDX900"></A>
Write the .po file using indented style.
<DT><SAMP>‘--no-location’</SAMP>
<DD>
-<A NAME="IDX894"></A>
+<A NAME="IDX901"></A>
Do not write <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines.
<DT><SAMP>‘--add-location’</SAMP>
<DD>
-<A NAME="IDX895"></A>
+<A NAME="IDX902"></A>
Generate <SAMP>‘#: <VAR>filename</VAR>:<VAR>line</VAR>’</SAMP> lines (default).
<DT><SAMP>‘--strict’</SAMP>
<DD>
-<A NAME="IDX896"></A>
+<A NAME="IDX903"></A>
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
<DD>
<DT><SAMP>‘--properties-output’</SAMP>
<DD>
-<A NAME="IDX897"></A>
-<A NAME="IDX898"></A>
+<A NAME="IDX904"></A>
+<A NAME="IDX905"></A>
Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax. Note
that this file format doesn't support plural forms and silently drops
obsolete messages.
<DT><SAMP>‘--stringtable-output’</SAMP>
<DD>
-<A NAME="IDX899"></A>
+<A NAME="IDX906"></A>
Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
Note that this file format doesn't support plural forms.
<DD>
<DT><SAMP>‘--width=<VAR>number</VAR>’</SAMP>
<DD>
-<A NAME="IDX900"></A>
-<A NAME="IDX901"></A>
+<A NAME="IDX907"></A>
+<A NAME="IDX908"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>‘--no-wrap’</SAMP>
<DD>
-<A NAME="IDX902"></A>
+<A NAME="IDX909"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>‘--sort-output’</SAMP>
<DD>
-<A NAME="IDX903"></A>
-<A NAME="IDX904"></A>
+<A NAME="IDX910"></A>
+<A NAME="IDX911"></A>
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
<DD>
<DT><SAMP>‘--sort-by-file’</SAMP>
<DD>
-<A NAME="IDX905"></A>
-<A NAME="IDX906"></A>
+<A NAME="IDX912"></A>
+<A NAME="IDX913"></A>
Sort output by file location.
</DL>
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX907"></A>
-<A NAME="IDX908"></A>
+<A NAME="IDX914"></A>
+<A NAME="IDX915"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX909"></A>
-<A NAME="IDX910"></A>
+<A NAME="IDX916"></A>
+<A NAME="IDX917"></A>
Output version information and exit.
</DL>
<H2><A NAME="SEC145" HREF="gettext_toc.html#TOC145">9.10 Invoking the <CODE>msgexec</CODE> Program</A></H2>
<P>
-<A NAME="IDX911"></A>
-<A NAME="IDX912"></A>
+<A NAME="IDX918"></A>
+<A NAME="IDX919"></A>
<PRE>
msgexec [<VAR>option</VAR>] <VAR>command</VAR> [<VAR>command-option</VAR>]
</PRE>
<P>
-<A NAME="IDX913"></A>
+<A NAME="IDX920"></A>
The <CODE>msgexec</CODE> program applies a command to all translations of a
translation catalog.
The <VAR>command</VAR> can be any program that reads a translation from standard
</P>
<P>
-<A NAME="IDX914"></A>
+<A NAME="IDX921"></A>
A special builtin command called <SAMP>‘0’</SAMP> outputs the translation, followed
by a null byte. The output of <SAMP>‘msgexec 0’</SAMP> is suitable as input for
<SAMP>‘xargs -0’</SAMP>.
</P>
<P>
-<A NAME="IDX915"></A>
-<A NAME="IDX916"></A>
-<A NAME="IDX917"></A>
+<A NAME="IDX922"></A>
+<A NAME="IDX923"></A>
+<A NAME="IDX924"></A>
During each <VAR>command</VAR> invocation, the environment variable
<CODE>MSGEXEC_MSGID</CODE> is bound to the message's msgid, and the environment
variable <CODE>MSGEXEC_LOCATION</CODE> is bound to the location in the PO file
</P>
<P>
-<A NAME="IDX918"></A>
+<A NAME="IDX925"></A>
Note: It is your responsibility to ensure that the <VAR>command</VAR> can cope
with input encoded in the translation catalog's encoding. If the
<VAR>command</VAR> wants input in a particular encoding, you can in a first step
<DD>
<DT><SAMP>‘--input=<VAR>inputfile</VAR>’</SAMP>
<DD>
-<A NAME="IDX919"></A>
-<A NAME="IDX920"></A>
+<A NAME="IDX926"></A>
+<A NAME="IDX927"></A>
Input PO file.
<DT><SAMP>‘-D <VAR>directory</VAR>’</SAMP>
<DD>
<DT><SAMP>‘--directory=<VAR>directory</VAR>’</SAMP>
<DD>
-<A NAME="IDX921"></A>
-<A NAME="IDX922"></A>
+<A NAME="IDX928"></A>
+<A NAME="IDX929"></A>
Add <VAR>directory</VAR> to the list of directories. Source files are
searched relative to this list of directories. The resulting <TT>‘.po’</TT>
file will be written relative to the current directory, though.
<DD>
<DT><SAMP>‘--properties-input’</SAMP>
<DD>
-<A NAME="IDX923"></A>
-<A NAME="IDX924"></A>
+<A NAME="IDX930"></A>
+<A NAME="IDX931"></A>
Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
syntax, not in PO file syntax.
<DT><SAMP>‘--stringtable-input’</SAMP>
<DD>
-<A NAME="IDX925"></A>
+<A NAME="IDX932"></A>
Assume the input file is a NeXTstep/GNUstep localized resource file in
<CODE>.strings</CODE> syntax, not in PO file syntax.
<DD>
<DT><SAMP>‘--help’</SAMP>
<DD>
-<A NAME="IDX926"></A>
-<A NAME="IDX927"></A>
+<A NAME="IDX933"></A>
+<A NAME="IDX934"></A>
Display this help and exit.
<DT><SAMP>‘-V’</SAMP>
<DD>
<DT><SAMP>‘--version’</SAMP>
<DD>
-<A NAME="IDX928"></A>
-<A NAME="IDX929"></A>
+<A NAME="IDX935"></A>
+<A NAME="IDX936"></A>
Output version information and exit.
</DL>
<H3><A NAME="SEC150" HREF="gettext_toc.html#TOC150">9.11.1 The <CODE>--color</CODE> option</A></H3>
<P>
-<A NAME="IDX930"></A>
+<A NAME="IDX937"></A>
The <SAMP>‘--color=<VAR>when</VAR>’</SAMP> option specifies under which conditions
colorized output should be generated. The <VAR>when</VAR> part can be one of
the following:
<H3><A NAME="SEC151" HREF="gettext_toc.html#TOC151">9.11.2 The environment variable <CODE>TERM</CODE></A></H3>
<P>
-<A NAME="IDX931"></A>
+<A NAME="IDX938"></A>
The environment variable <CODE>TERM</CODE> contains a identifier for the text
window's capabilities. You can get a detailed list of these cababilities
by using the <SAMP>‘infocmp’</SAMP> command, using <SAMP>‘man 5 terminfo’</SAMP> as a
<H3><A NAME="SEC152" HREF="gettext_toc.html#TOC152">9.11.3 The <CODE>--style</CODE> option</A></H3>
<P>
-<A NAME="IDX932"></A>
+<A NAME="IDX939"></A>
The <SAMP>‘--style=<VAR>style_file</VAR>’</SAMP> option specifies the style file to use
when colorizing. It has an effect only when the <CODE>--color</CODE> option is
effective.
</P>
<P>
-<A NAME="IDX933"></A>
+<A NAME="IDX940"></A>
If the <CODE>--style</CODE> option is not specified, the environment variable
<CODE>PO_STYLE</CODE> is considered. It is meant to point to the user's
preferred style for PO files.
<P>
<DL>
<DT><U>Data Type:</U> <B>po_file_t</B>
-<DD><A NAME="IDX934"></A>
+<DD><A NAME="IDX941"></A>
This is a pointer type that refers to the contents of a PO file, after it has
been read into memory.
</DL>
<P>
<DL>
<DT><U>Data Type:</U> <B>po_message_iterator_t</B>
-<DD><A NAME="IDX935"></A>
+<DD><A NAME="IDX942"></A>
This is a pointer type that refers to an iterator that produces a sequence of
messages.
</DL>
<P>
<DL>
<DT><U>Data Type:</U> <B>po_message_t</B>
-<DD><A NAME="IDX936"></A>
+<DD><A NAME="IDX943"></A>
This is a pointer type that refers to a message of a PO file, including its
translation.
</DL>
<P>
<DL>
<DT><U>Function:</U> po_file_t <B>po_file_read</B> <I>(const char *<VAR>filename</VAR>)</I>
-<DD><A NAME="IDX937"></A>
+<DD><A NAME="IDX944"></A>
The <CODE>po_file_read</CODE> function reads a PO file into memory. The file name
is given as argument. The return value is a handle to the PO file's contents,
valid until <CODE>po_file_free</CODE> is called on it. In case of error, the return
<P>
<DL>
<DT><U>Function:</U> void <B>po_file_free</B> <I>(po_file_t <VAR>file</VAR>)</I>
-<DD><A NAME="IDX938"></A>
+<DD><A NAME="IDX945"></A>
The <CODE>po_file_free</CODE> function frees a PO file's contents from memory,
including all messages that are only implicitly accessible through iterators.
</DL>
<P>
<DL>
<DT><U>Function:</U> const char * const * <B>po_file_domains</B> <I>(po_file_t <VAR>file</VAR>)</I>
-<DD><A NAME="IDX939"></A>
+<DD><A NAME="IDX946"></A>
The <CODE>po_file_domains</CODE> function returns the domains for which the given
PO file has messages. The return value is a <CODE>NULL</CODE> terminated array
which is valid as long as the <VAR>file</VAR> handle is valid. For PO files which
<P>
<DL>
<DT><U>Function:</U> po_message_iterator_t <B>po_message_iterator</B> <I>(po_file_t <VAR>file</VAR>, const char *<VAR>domain</VAR>)</I>
-<DD><A NAME="IDX940"></A>
+<DD><A NAME="IDX947"></A>
The <CODE>po_message_iterator</CODE> returns an iterator that will produce the
messages of <VAR>file</VAR> that belong to the given <VAR>domain</VAR>. If <VAR>domain</VAR>
is <CODE>NULL</CODE>, the default domain is used instead. To list the messages,
<P>
<DL>
<DT><U>Function:</U> void <B>po_message_iterator_free</B> <I>(po_message_iterator_t <VAR>iterator</VAR>)</I>
-<DD><A NAME="IDX941"></A>
+<DD><A NAME="IDX948"></A>
The <CODE>po_message_iterator_free</CODE> function frees an iterator previously
allocated through the <CODE>po_message_iterator</CODE> function.
</DL>
<P>
<DL>
<DT><U>Function:</U> po_message_t <B>po_next_message</B> <I>(po_message_iterator_t <VAR>iterator</VAR>)</I>
-<DD><A NAME="IDX942"></A>
+<DD><A NAME="IDX949"></A>
The <CODE>po_next_message</CODE> function returns the next message from
<VAR>iterator</VAR> and advances the iterator. It returns <CODE>NULL</CODE> when the
iterator has reached the end of its message list.
<P>
<DL>
<DT><U>Function:</U> const char * <B>po_message_msgid</B> <I>(po_message_t <VAR>message</VAR>)</I>
-<DD><A NAME="IDX943"></A>
+<DD><A NAME="IDX950"></A>
The <CODE>po_message_msgid</CODE> function returns the <CODE>msgid</CODE> (untranslated
English string) of a message. This is guaranteed to be non-<CODE>NULL</CODE>.
</DL>
<P>
<DL>
<DT><U>Function:</U> const char * <B>po_message_msgid_plural</B> <I>(po_message_t <VAR>message</VAR>)</I>
-<DD><A NAME="IDX944"></A>
+<DD><A NAME="IDX951"></A>
The <CODE>po_message_msgid_plural</CODE> function returns the <CODE>msgid_plural</CODE>
(untranslated English plural string) of a message with plurals, or <CODE>NULL</CODE>
for a message without plural.
<P>
<DL>
<DT><U>Function:</U> const char * <B>po_message_msgstr</B> <I>(po_message_t <VAR>message</VAR>)</I>
-<DD><A NAME="IDX945"></A>
+<DD><A NAME="IDX952"></A>
The <CODE>po_message_msgstr</CODE> function returns the <CODE>msgstr</CODE> (translation)
of a message. For an untranslated message, the return value is an empty
string.
<P>
<DL>
<DT><U>Function:</U> const char * <B>po_message_msgstr_plural</B> <I>(po_message_t <VAR>message</VAR>, int <VAR>index</VAR>)</I>
-<DD><A NAME="IDX946"></A>
+<DD><A NAME="IDX953"></A>
The <CODE>po_message_msgstr_plural</CODE> function returns the
<CODE>msgstr[<VAR>index</VAR>]</CODE> of a message with plurals, or <CODE>NULL</CODE> when
the <VAR>index</VAR> is out of range or for a message without plural.