@pindex msgconv @cindex @code{msgconv} program, usage @example msgconv [@var{option}] [@var{inputfile}] @end example @cindex convert translations to a different encoding The @code{msgconv} program converts a translation catalog to a different character encoding. @subsection Input file location @table @samp @item @var{inputfile} Input PO file. @item -D @var{directory} @itemx --directory=@var{directory} @opindex -D@r{, @code{msgconv} option} @opindex --directory@r{, @code{msgconv} option} Add @var{directory} to the list of directories. Source files are searched relative to this list of directories. The resulting @file{.po} file will be written relative to the current directory, though. @end table If no @var{inputfile} is given or if it is @samp{-}, standard input is read. @subsection Output file location @table @samp @item -o @var{file} @itemx --output-file=@var{file} @opindex -o@r{, @code{msgconv} option} @opindex --output-file@r{, @code{msgconv} option} Write output to specified file. @end table The results are written to standard output if no output file is specified or if it is @samp{-}. @subsection Conversion target @table @samp @item -t @itemx --to-code=@var{name} @opindex -t@r{, @code{msgconv} option} @opindex --to-code@r{, @code{msgconv} option} Specify encoding for output. @end table The default encoding is the current locale's encoding. @subsection Output details @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp @item --force-po @opindex --force-po@r{, @code{msgconv} option} Always write an output file even if it contains no message. @item -i @itemx --indent @opindex -i@r{, @code{msgconv} option} @opindex --indent@r{, @code{msgconv} option} Write the .po file using indented style. @item --no-location @opindex --no-location@r{, @code{msgconv} option} Do not write @samp{#: @var{filename}:@var{line}} lines. @item --add-location @opindex --add-location@r{, @code{msgconv} option} Generate @samp{#: @var{filename}:@var{line}} lines (default). @item --strict @opindex --strict@r{, @code{msgconv} option} Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @item -w @var{number} @itemx --width=@var{number} @opindex -w@r{, @code{msgconv} option} @opindex --width@r{, @code{msgconv} option} 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}. @item --no-wrap @opindex --no-wrap@r{, @code{msgconv} option} 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. @item -s @itemx --sort-output @opindex -s@r{, @code{msgconv} option} @opindex --sort-output@r{, @code{msgconv} option} Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @item -F @itemx --sort-by-file @opindex -F@r{, @code{msgconv} option} @opindex --sort-by-file@r{, @code{msgconv} option} Sort output by file location. @end table @subsection Informative output @table @samp @item -h @itemx --help @opindex -h@r{, @code{msgconv} option} @opindex --help@r{, @code{msgconv} option} Display this help and exit. @item -V @itemx --version @opindex -V@r{, @code{msgconv} option} @opindex --version@r{, @code{msgconv} option} Output version information and exit. @end table