diff options
author | Luca Falavigna <dktrkranz@debian.org> | 2014-04-26 15:11:58 +0200 |
---|---|---|
committer | Luca Falavigna <dktrkranz@debian.org> | 2014-04-26 15:11:58 +0200 |
commit | a3a0ab66f0da855e75e3a0e2acfb8aa106b46510 (patch) | |
tree | 5352edff1387c3d7e5a8b49ec56524f085c22782 /src/engine/SCons/Tool/msgfmt.xml | |
parent | 51fa4e4acb6fc8fc7a2af0fbdc21fd1e8feddb3a (diff) | |
parent | 140d836e9cd54fb67b969fd82ef7ed19ba574d40 (diff) |
Merge tag 'upstream/2.3.1'
Upstream version 2.3.1
Diffstat (limited to 'src/engine/SCons/Tool/msgfmt.xml')
-rw-r--r-- | src/engine/SCons/Tool/msgfmt.xml | 75 |
1 files changed, 59 insertions, 16 deletions
diff --git a/src/engine/SCons/Tool/msgfmt.xml b/src/engine/SCons/Tool/msgfmt.xml index e595f60..b45bbae 100644 --- a/src/engine/SCons/Tool/msgfmt.xml +++ b/src/engine/SCons/Tool/msgfmt.xml @@ -1,102 +1,145 @@ +<?xml version="1.0" encoding="UTF-8"?> <!-- -Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The SCons Foundation +Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation This file is processed by the bin/SConsDoc.py module. See its __doc__ string for a discussion of the format. --> + +<!DOCTYPE sconsdoc [ +<!ENTITY % scons SYSTEM '../../../../doc/scons.mod'> +%scons; +<!ENTITY % builders-mod SYSTEM '../../../../doc/generated/builders.mod'> +%builders-mod; +<!ENTITY % functions-mod SYSTEM '../../../../doc/generated/functions.mod'> +%functions-mod; +<!ENTITY % tools-mod SYSTEM '../../../../doc/generated/tools.mod'> +%tools-mod; +<!ENTITY % variables-mod SYSTEM '../../../../doc/generated/variables.mod'> +%variables-mod; +]> + +<sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0/scons.xsd scons.xsd"> + <tool name="msgfmt"> <summary> +<para> This scons tool is a part of scons &t-link-gettext; toolset. It provides scons interface to <command>msgfmt(1)</command> command, which generates binary message catalog (<literal>MO</literal>) from a textual translation description (<literal>PO</literal>). +</para> </summary> <sets> -MOSUFFIX -MSGFMT -MSGFMTCOM -MSGFMTCOMSTR -MSGFMTFLAGS -POSUFFIX +<item>MOSUFFIX</item> +<item>MSGFMT</item> +<item>MSGFMTCOM</item> +<item>MSGFMTCOMSTR</item> +<item>MSGFMTFLAGS</item> +<item>POSUFFIX</item> </sets> <uses> -LINGUAS_FILE +<item>LINGUAS_FILE</item> </uses> </tool> <builder name="MOFiles"> <summary> +<para> This builder belongs to &t-link-msgfmt; tool. The builder compiles <literal>PO</literal> files to <literal>MO</literal> files. +</para> +<para> <emphasis>Example 1</emphasis>. Create <filename>pl.mo</filename> and <filename>en.mo</filename> by compiling <filename>pl.po</filename> and <filename>en.po</filename>: -<example> +</para> +<example_commands> # ... env.MOFiles(['pl', 'en']) -</example> +</example_commands> +<para> <emphasis>Example 2</emphasis>. Compile files for languages defined in <filename>LINGUAS</filename> file: -<example> +</para> +<example_commands> # ... env.MOFiles(LINGUAS_FILE = 1) -</example> +</example_commands> +<para> <emphasis>Example 3</emphasis>. Create <filename>pl.mo</filename> and <filename>en.mo</filename> by compiling <filename>pl.po</filename> and <filename>en.po</filename> plus files for languages defined in <filename>LINGUAS</filename> file: -<example> +</para> +<example_commands> # ... env.MOFiles(['pl', 'en'], LINGUAS_FILE = 1) -</example> +</example_commands> +<para> <emphasis>Example 4</emphasis>. Compile files for languages defined in <filename>LINGUAS</filename> file (another version): -<example> +</para> +<example_commands> # ... env['LINGUAS_FILE'] = 1 env.MOFiles() -</example> +</example_commands> </summary> </builder> <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <cvar name="MOSUFFIX"> <summary> +<para> Suffix used for <literal>MO</literal> files (default: <literal>'.mo'</literal>). See &t-link-msgfmt; tool and &b-link-MOFiles; builder. +</para> </summary> </cvar> <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <cvar name="MSGFMT"> <summary> +<para> Absolute path to <command>msgfmt(1)</command> binary, found by <function>Detect()</function>. See &t-link-msgfmt; tool and &b-link-MOFiles; builder. +</para> </summary> </cvar> <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <cvar name="MSGFMTCOM"> <summary> +<para> Complete command line to run <command>msgfmt(1)</command> program. See &t-link-msgfmt; tool and &b-link-MOFiles; builder. +</para> </summary> </cvar> <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <cvar name="MSGFMTCOMSTR"> <summary> +<para> String to display when <command>msgfmt(1)</command> is invoked (default: <literal>''</literal>, which means ``print &cv-link-MSGFMTCOM;''). See &t-link-msgfmt; tool and &b-link-MOFiles; builder. +</para> </summary> </cvar> <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <cvar name="MSGFMTFLAGS"> <summary> +<para> Additional flags to <command>msgfmt(1)</command>. See &t-link-msgfmt; tool and &b-link-MOFiles; builder. +</para> </summary> </cvar> + +</sconsdoc>
\ No newline at end of file |