HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

msgfmt — Compile message catalog to binary format. More information: <https://www.gnu.org/software/gettext/ma

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandformatmsgfmtcompileclicatalogbinarymessage

Problem

How to use the msgfmt command: Compile message catalog to binary format. More information: <https://www.gnu.org/software/gettext/manual/gettext.html#msgfmt-Invocation>.

Solution

msgfmt — Compile message catalog to binary format. More information: <https://www.gnu.org/software/gettext/manual/gettext.html#msgfmt-Invocation>.

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}}


Display help:
msgfmt {{[-h|--help]}}

Code Snippets

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}}

Display help

msgfmt {{[-h|--help]}}

Context

tldr-pages: common/msgfmt

Revisions (0)

No revisions yet.