Linux command
msgunfmt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert MO to PO
msgunfmt [messages.mo] -o [messages.po]
Convert Java properties
msgunfmt --java -d [classes/] -l [locale] -o [output.po]
Specify output encoding
msgunfmt --output-encoding=[UTF-8] [messages.mo] -o [messages.po]
说明
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.
参数
- -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.
FAQ
What is the msgunfmt command used for?
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.
How do I run a basic msgunfmt example?
Run `msgunfmt [messages.mo] -o [messages.po]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _file_ do in msgunfmt?
Output file.