2 @cindex @code{msgconv} program, usage
4 msgconv [@var{option}] [@var{inputfile}]
7 @cindex convert translations to a different encoding
8 The @code{msgconv} program converts a translation catalog to a different
11 @subsection Input file location
17 @item -D @var{directory}
18 @itemx --directory=@var{directory}
19 @opindex -D@r{, @code{msgconv} option}
20 @opindex --directory@r{, @code{msgconv} option}
21 Add @var{directory} to the list of directories. Source files are
22 searched relative to this list of directories. The resulting @file{.po}
23 file will be written relative to the current directory, though.
27 If no @var{inputfile} is given or if it is @samp{-}, standard input is read.
29 @subsection Output file location
33 @itemx --output-file=@var{file}
34 @opindex -o@r{, @code{msgconv} option}
35 @opindex --output-file@r{, @code{msgconv} option}
36 Write output to specified file.
40 The results are written to standard output if no output file is specified
43 @subsection Conversion target
47 @itemx --to-code=@var{name}
48 @opindex -t@r{, @code{msgconv} option}
49 @opindex --to-code@r{, @code{msgconv} option}
50 Specify encoding for output.
54 The default encoding is the current locale's encoding.
56 @subsection Input file syntax
60 @itemx --properties-input
61 @opindex -P@r{, @code{msgconv} option}
62 @opindex --properties-input@r{, @code{msgconv} option}
63 Assume the input file is a Java ResourceBundle in Java @code{.properties}
64 syntax, not in PO file syntax.
66 @item --stringtable-input
67 @opindex --stringtable-input@r{, @code{msgonv} option}
68 Assume the input file is a NeXTstep/GNUstep localized resource file in
69 @code{.strings} syntax, not in PO file syntax.
73 @subsection Output details
75 @c --no-escape and --escape omitted on purpose. They are not useful.
79 @itemx --color=@var{when}
80 @opindex --color@r{, @code{msgconv} option}
81 Specify whether or when to use colors and other text attributes.
82 See @ref{The --color option} for details.
84 @item --style=@var{style_file}
85 @opindex --style@r{, @code{msgconv} option}
86 Specify the CSS style rule file to use for @code{--color}.
87 See @ref{The --style option} for details.
90 @opindex --force-po@r{, @code{msgconv} option}
91 Always write an output file even if it contains no message.
95 @opindex -i@r{, @code{msgconv} option}
96 @opindex --indent@r{, @code{msgconv} option}
97 Write the .po file using indented style.
100 @opindex --no-location@r{, @code{msgconv} option}
101 Do not write @samp{#: @var{filename}:@var{line}} lines.
104 @opindex --add-location@r{, @code{msgconv} option}
105 Generate @samp{#: @var{filename}:@var{line}} lines (default).
108 @opindex --strict@r{, @code{msgconv} option}
109 Write out a strict Uniforum conforming PO file. Note that this
110 Uniforum format should be avoided because it doesn't support the
114 @itemx --properties-output
115 @opindex -p@r{, @code{msgconv} option}
116 @opindex --properties-output@r{, @code{msgconv} option}
117 Write out a Java ResourceBundle in Java @code{.properties} syntax. Note
118 that this file format doesn't support plural forms and silently drops
121 @item --stringtable-output
122 @opindex --stringtable-output@r{, @code{msgconv} option}
123 Write out a NeXTstep/GNUstep localized resource file in @code{.strings} syntax.
124 Note that this file format doesn't support plural forms.
126 @item -w @var{number}
127 @itemx --width=@var{number}
128 @opindex -w@r{, @code{msgconv} option}
129 @opindex --width@r{, @code{msgconv} option}
130 Set the output page width. Long strings in the output files will be
131 split across multiple lines in order to ensure that each line's width
132 (= number of screen columns) is less or equal to the given @var{number}.
135 @opindex --no-wrap@r{, @code{msgconv} option}
136 Do not break long message lines. Message lines whose width exceeds the
137 output page width will not be split into several lines. Only file reference
138 lines which are wider than the output page width will be split.
142 @opindex -s@r{, @code{msgconv} option}
143 @opindex --sort-output@r{, @code{msgconv} option}
144 Generate sorted output. Note that using this option makes it much harder
145 for the translator to understand each message's context.
148 @itemx --sort-by-file
149 @opindex -F@r{, @code{msgconv} option}
150 @opindex --sort-by-file@r{, @code{msgconv} option}
151 Sort output by file location.
155 @subsection Informative output
160 @opindex -h@r{, @code{msgconv} option}
161 @opindex --help@r{, @code{msgconv} option}
162 Display this help and exit.
166 @opindex -V@r{, @code{msgconv} option}
167 @opindex --version@r{, @code{msgconv} option}
168 Output version information and exit.