mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 16:43:08 +00:00
18 lines
419 B
Plaintext
18 lines
419 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# msgfmt
|
|
|
|
> Compile message catalog to binary format.
|
|
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html>.
|
|
|
|
- Compile a file to `messages.mo`:
|
|
|
|
`msgfmt {{file.po}}`
|
|
|
|
- Convert a `.po` file to a `.mo` file:
|
|
|
|
`msgfmt {{path/to/file.po}} {{[-o|--output-file]}} {{path/to/file.mo}}`
|