2025-03-14 21:59:59 -06:00
|
|
|
# msgfmt
|
|
|
|
|
|
|
|
|
|
> Compile message catalog to binary format.
|
|
|
|
|
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html>.
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Compile a file to `messages.mo`:
|
|
|
|
|
|
|
|
|
|
`msgfmt {{file.po}}`
|
|
|
|
|
|
2025-03-14 21:59:59 -06:00
|
|
|
- Convert a `.po` file to a `.mo` file:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`msgfmt {{path/to/file.po}} {{[-o|--output-file]}} {{path/to/file.mo}}`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`msgfmt {{[-h|--help]}}`
|