%scons; %builders-mod; %functions-mod; %tools-mod; %variables-mod; ]> This tool is a part of the &t-link-gettext; toolset. It provides &SCons; an interface to the msgfmt(1) command by setting up the &b-link-MOFiles; builder, which generates binary message catalog (MO) files from a textual translation description (PO files). MOSUFFIX MSGFMT MSGFMTCOM MSGFMTCOMSTR MSGFMTFLAGS POSUFFIX LINGUAS_FILE This builder is set up by the &t-link-msgfmt; tool. The builder compiles PO files to MO files. &b-MOFiles; is a single-source builder. The source parameter can also be omitted if &cv-link-LINGUAS_FILE; is set. Example 1. Create pl.mo and en.mo by compiling pl.po and en.po: env.MOFiles(['pl', 'en']) Example 2. Compile files for languages defined in LINGUAS file: env.MOFiles(LINGUAS_FILE=True) Example 3. Create pl.mo and en.mo by compiling pl.po and en.po plus files for languages defined in LINGUAS file: env.MOFiles(['pl', 'en'], LINGUAS_FILE=True) Example 4. Compile files for languages defined in LINGUAS file (another version): env['LINGUAS_FILE'] = True env.MOFiles() Suffix used for MO files (default: '.mo'). See &t-link-msgfmt; tool and &b-link-MOFiles; builder. Absolute path to msgfmt(1) binary, found by Detect(). See &t-link-msgfmt; tool and &b-link-MOFiles; builder. Complete command line to run msgfmt(1) program. See &t-link-msgfmt; tool and &b-link-MOFiles; builder. String to display when msgfmt(1) is invoked (default: '', which means ``print &cv-link-MSGFMTCOM;''). See &t-link-msgfmt; tool and &b-link-MOFiles; builder. Additional flags to msgfmt(1). See &t-link-msgfmt; tool and &b-link-MOFiles; builder.