From 3d529f4ea2b0de42aa2144dbe904e564b7b0b813 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Mon, 20 Aug 2012 23:30:34 +0200 Subject: Imported Upstream version 2.2.0 --- src/engine/SCons/Tool/msgfmt.xml | 102 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 src/engine/SCons/Tool/msgfmt.xml (limited to 'src/engine/SCons/Tool/msgfmt.xml') diff --git a/src/engine/SCons/Tool/msgfmt.xml b/src/engine/SCons/Tool/msgfmt.xml new file mode 100644 index 0000000..818b788 --- /dev/null +++ b/src/engine/SCons/Tool/msgfmt.xml @@ -0,0 +1,102 @@ + + + +This scons tool is a part of scons &t-link-gettext; toolset. It provides scons +interface to msgfmt(1) command, which generates binary +message catalog (MO) from a textual translation description +(PO). + + +MOSUFFIX +MSGFMT +MSGFMTCOM +MSGFMTCOMSTR +MSGFMTFLAGS +POSUFFIX + + +LINGUAS_FILE + + + + + +This builder belongs to &t-link-msgfmt; tool. The builder compiles +PO files to MO files. + +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 = 1) + + +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 = 1) + + +Example 4. +Compile files for languages defined in LINGUAS file +(another version): + + # ... + env['LINGUAS_FILE'] = 1 + 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. + + -- cgit v1.2.3