OS Manuals

/usr/bin/msgunfmt

GNU locale utilities

From gettext 1.0-r8 (os), captured 2026-11-05 by running msgunfmt --help (exit 0). permalink

Usage: /usr/bin/msgunfmt [OPTION] [FILE]...

Convert binary message catalog to Uniforum style .po file.

Mandatory arguments to long options are mandatory for short options too.

Operation mode:
  -j, --java                  Java mode: input is a Java ResourceBundle class
      --csharp                C# mode: input is a .NET .dll file
      --csharp-resources      C# resources mode: input is a .NET .resources file
      --tcl                   Tcl mode: input is a tcl/msgcat .msg file

Input file location:
  FILE ...                    input .mo files
If no input file is given or if it is -, standard input is read.

Input file location in Java mode:
  -r, --resource=RESOURCE     resource name
  -l, --locale=LOCALE         locale name, either language or language_COUNTRY
The class name is determined by appending the locale name to the resource name,
separated with an underscore.  The class is located using the CLASSPATH.

Input file location in C# mode:
  -r, --resource=RESOURCE     resource name
  -l, --locale=LOCALE         locale name, either language or language_COUNTRY
  -d DIRECTORY                base directory for locale dependent .dll files
The -l and -d options are mandatory.  The .dll file is located in a
subdirectory of the specified directory whose name depends on the locale.

Input file location in Tcl mode:
  -l, --locale=LOCALE         locale name, either language or language_COUNTRY
  -d DIRECTORY                base directory of .msg message catalogs
The -l and -d options are mandatory.  The .msg file is located in the
specified directory.

Output file location:
  -o, --output-file=FILE      write output to specified file
The results are written to standard output if no output file is specified
or if it is -.

Output details:
      --color                 use colors and other text attributes always
      --color=WHEN            use colors and other text attributes if WHEN.
                              WHEN may be 'always', 'never', 'auto', or 'html'.
      --style=STYLEFILE       specify CSS style rule file for --color
  -e, --no-escape             do not use C escapes in output (default)
  -E, --escape                use C escapes in output, no extended chars
      --force-po              write PO file even if empty
  -i, --indent                write indented output style
      --strict                write strict uniforum style
  -p, --properties-output     write out a Java .properties file
      --stringtable-output    write out a NeXTstep/GNUstep .strings file
  -w, --width=NUMBER          set output page width
      --no-wrap               do not break long message lines, longer than
                              the output page width, into several lines
  -s, --sort-output           generate sorted output

Informative output:
  -h, --help                  display this help and exit
  -V, --version               output version information and exit
  -v, --verbose               increase verbosity level

Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
or by email to <bug-gettext@gnu.org>.
Options (23)
OptionDescriptionSource
-j, --javaJava mode: input is a Java ResourceBundle classhelp + man
--csharpC# mode: input is a .NET .dll filehelp + man
--csharp-resourcesC# resources mode: input is a .NET .resources filehelp + man
--tclTcl mode: input is a tcl/msgcat .msg filehelp + man
-r, --resource RESOURCEresource namehelp + man
-l, --locale LOCALElocale name, either language or language_COUNTRYhelp + man
-d DIRECTORYbase directory for locale dependent .dll fileshelp + man
-o, --output-file FILEwrite output to specified filehelp + man
--coloruse colors and other text attributes alwayshelp + man
--style STYLEFILEspecify CSS style rule file for --colorhelp + man
-e, --no-escapedo not use C escapes in output (default)help + man
-E, --escapeuse C escapes in output, no extended charshelp + man
--force-powrite PO file even if emptyhelp + man
-i, --indentwrite indented output stylehelp + man
--strictwrite strict uniforum stylehelp + man
-p, --properties-outputwrite out a Java .properties filehelp + man
--stringtable-outputwrite out a NeXTstep/GNUstep .strings filehelp + man
-w, --width NUMBERset output page widthhelp + man
--no-wrapdo not break long message lines, longer than the output page width, into several lineshelp + man
-s, --sort-outputgenerate sorted outputhelp + man
-h, --helpdisplay this help and exithelp + man
-V, --versionoutput version information and exithelp + man
-v, --verboseincrease verbosity levelhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.