gettext: msgunfmt Invocation
1
1 10.2 Invoking the ‘msgunfmt’ Program
1 ====================================
1
1 msgunfmt [OPTION] [FILE]...
1
1 The ‘msgunfmt’ program converts a binary message catalog to a
1 Uniforum style .po file.
1
1 10.2.1 Operation mode
1 ---------------------
1
1 ‘-j’
1 ‘--java’
1 Java mode: input is a Java ‘ResourceBundle’ class.
1
1 ‘--csharp’
1 C# mode: input is a .NET .dll file containing a subclass of
1 ‘GettextResourceSet’.
1
1 ‘--csharp-resources’
1 C# resources mode: input is a .NET ‘.resources’ file.
1
1 ‘--tcl’
1 Tcl mode: input is a tcl/msgcat ‘.msg’ file.
1
1 10.2.2 Input file location
1 --------------------------
1
1 ‘FILE …’
1 Input .mo files.
1
1 If no input FILE is given or if it is ‘-’, standard input is read.
1
1 10.2.3 Input file location in Java mode
1 ---------------------------------------
1
1 ‘-r RESOURCE’
1 ‘--resource=RESOURCE’
1 Specify the resource name.
1
1 ‘-l LOCALE’
1 ‘--locale=LOCALE’
1 Specify the locale name, either a language specification of the
1 form LL or a combined language and country specification of the
1 form LL_CC.
1
1 The class name is determined by appending the locale name to the
1 resource name, separated with an underscore. The class is located using
1 the ‘CLASSPATH’.
1
1 10.2.4 Input file location in C# mode
1 -------------------------------------
1
1 ‘-r RESOURCE’
1 ‘--resource=RESOURCE’
1 Specify the resource name.
1
1 ‘-l LOCALE’
1 ‘--locale=LOCALE’
1 Specify the locale name, either a language specification of the
1 form LL or a combined language and country specification of the
1 form LL_CC.
1
1 ‘-d DIRECTORY’
1 Specify the base directory for locale dependent ‘.dll’ files.
1
1 The ‘-l’ and ‘-d’ options are mandatory. The ‘.msg’ file is located
1 in a subdirectory of the specified directory whose name depends on the
1 locale.
1
1 10.2.5 Input file location in Tcl mode
1 --------------------------------------
1
1 ‘-l LOCALE’
1 ‘--locale=LOCALE’
1 Specify the locale name, either a language specification of the
1 form LL or a combined language and country specification of the
1 form LL_CC.
1
1 ‘-d DIRECTORY’
1 Specify the base directory of ‘.msg’ message catalogs.
1
1 The ‘-l’ and ‘-d’ options are mandatory. The ‘.msg’ file is located
1 in the specified directory.
1
1 10.2.6 Output file location
1 ---------------------------
1
1 ‘-o FILE’
1 ‘--output-file=FILE’
1 Write output to specified file.
1
1 The results are written to standard output if no output file is
1 specified or if it is ‘-’.
1
1 10.2.7 Output details
1 ---------------------
1
1 ‘--color’
1 ‘--color=WHEN’
1 Specify whether or when to use colors and other text attributes.
1 See ⇒The --color option for details.
1
1 ‘--style=STYLE_FILE’
11 Specify the CSS style rule file to use for ‘--color’. See ⇒
The --style option for details.
1
1 ‘--force-po’
1 Always write an output file even if it contains no message.
1
1 ‘-i’
1 ‘--indent’
1 Write the .po file using indented style.
1
1 ‘--strict’
1 Write out a strict Uniforum conforming PO file. Note that this
1 Uniforum format should be avoided because it doesn’t support the
1 GNU extensions.
1
1 ‘-p’
1 ‘--properties-output’
1 Write out a Java ResourceBundle in Java ‘.properties’ syntax. Note
1 that this file format doesn’t support plural forms and silently
1 drops obsolete messages.
1
1 ‘--stringtable-output’
1 Write out a NeXTstep/GNUstep localized resource file in ‘.strings’
1 syntax. Note that this file format doesn’t support plural forms.
1
1 ‘-w NUMBER’
1 ‘--width=NUMBER’
1 Set the output page width. Long strings in the output files will
1 be split across multiple lines in order to ensure that each line’s
1 width (= number of screen columns) is less or equal to the given
1 NUMBER.
1
1 ‘--no-wrap’
1 Do not break long message lines. Message lines whose width exceeds
1 the output page width will not be split into several lines. Only
1 file reference lines which are wider than the output page width
1 will be split.
1
1 ‘-s’
1 ‘--sort-output’
1 Generate sorted output. Note that using this option makes it much
1 harder for the translator to understand each message’s context.
1
1 10.2.8 Informative output
1 -------------------------
1
1 ‘-h’
1 ‘--help’
1 Display this help and exit.
1
1 ‘-V’
1 ‘--version’
1 Output version information and exit.
1
1 ‘-v’
1 ‘--verbose’
1 Increase verbosity level.
1