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 @opindex --force-po@r{, @code{msgconv} option}
80 Always write an output file even if it contains no message.
84 @opindex -i@r{, @code{msgconv} option}
85 @opindex --indent@r{, @code{msgconv} option}
86 Write the .po file using indented style.
89 @opindex --no-location@r{, @code{msgconv} option}
90 Do not write @samp{#: @var{filename}:@var{line}} lines.
93 @opindex --add-location@r{, @code{msgconv} option}
94 Generate @samp{#: @var{filename}:@var{line}} lines (default).
97 @opindex --strict@r{, @code{msgconv} option}
98 Write out a strict Uniforum conforming PO file. Note that this
99 Uniforum format should be avoided because it doesn't support the
103 @itemx --properties-output
104 @opindex -p@r{, @code{msgconv} option}
105 @opindex --properties-output@r{, @code{msgconv} option}
106 Write out a Java ResourceBundle in Java @code{.properties} syntax. Note
107 that this file format doesn't support plural forms and silently drops
110 @item --stringtable-output
111 @opindex --stringtable-output@r{, @code{msgconv} option}
112 Write out a NeXTstep/GNUstep localized resource file in @code{.strings} syntax.
113 Note that this file format doesn't support plural forms.
115 @item -w @var{number}
116 @itemx --width=@var{number}
117 @opindex -w@r{, @code{msgconv} option}
118 @opindex --width@r{, @code{msgconv} option}
119 Set the output page width. Long strings in the output files will be
120 split across multiple lines in order to ensure that each line's width
121 (= number of screen columns) is less or equal to the given @var{number}.
124 @opindex --no-wrap@r{, @code{msgconv} option}
125 Do not break long message lines. Message lines whose width exceeds the
126 output page width will not be split into several lines. Only file reference
127 lines which are wider than the output page width will be split.
131 @opindex -s@r{, @code{msgconv} option}
132 @opindex --sort-output@r{, @code{msgconv} option}
133 Generate sorted output. Note that using this option makes it much harder
134 for the translator to understand each message's context.
137 @itemx --sort-by-file
138 @opindex -F@r{, @code{msgconv} option}
139 @opindex --sort-by-file@r{, @code{msgconv} option}
140 Sort output by file location.
144 @subsection Informative output
149 @opindex -h@r{, @code{msgconv} option}
150 @opindex --help@r{, @code{msgconv} option}
151 Display this help and exit.
155 @opindex -V@r{, @code{msgconv} option}
156 @opindex --version@r{, @code{msgconv} option}
157 Output version information and exit.