LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

msgunfmt

converts compiled gettext MO files back to human-readable PO format

TLDR

Convert MO to PO
$ msgunfmt [messages.mo] -o [messages.po]
copy
Convert Java properties
$ msgunfmt --java -d [classes/] -l [locale] -o [output.po]
copy
Specify output encoding
$ msgunfmt --output-encoding=[UTF-8] [messages.mo] -o [messages.po]
copy

SYNOPSIS

msgunfmt [options] inputfile

DESCRIPTION

msgunfmt converts compiled gettext MO (machine object) files back to human-readable PO (portable object) format. Also extracts translations from Java ResourceBundle classes. Part of GNU gettext.

PARAMETERS

-o file

Output file.
--java
Java ResourceBundle mode.
-d dir
Class directory for Java.
-l locale
Locale for Java mode.
--output-encoding enc
Output character encoding.
--no-wrap
Do not break long message lines.
--sort-output
Generate sorted output.
-v, --verbose
Increase verbosity level.

SEE ALSO

msgfmt(1), msgcat(1), msgattrib(1)

Copied to clipboard
Kai