msgfmt(1) create a message object from a message file

SYNOPSIS

msgfmt [ -v ] filename.po ...

DESCRIPTION

msgfmt creates a message object filename .mo file from the portable message file filename.po.

The .po file contains strings extracted from source code. .po files can be edited, and the messages in them can changed to accomodate any language supported by the system.

The xgettext command (see xgettext(1)) can be used to create the default.po file.

The msgfmt command does not modify the portable object files.

OPTIONS

-v
Verbose. List duplicate message identifiers. Message strings are not redefined.

EXAMPLES

The following command creates a named .mo file for each domain named in the portable message objects filename1.po and filename2.po.

msgfmt filename1.po filename2.po

Running msgfmt(1) on the following sample .po file creates two .mo files, named first.mo and second.mo.

domain "first.mo"
msgid "aao"
msgstr "first sample message"
domain "second.mo"
msgid "bbo"
msgstr "second sample message"