@@ -823,7 +823,7 @@ languages defined in <filename>LINGUAS</filename> file:
823
823
824
824
<para>
825
825
<emphasis>Example 4</emphasis>.
826
- Compile files for languages defined in <filename>LINGUAS</filename> file
826
+ Compile files for languages defined in <filename>LINGUAS</filename> file
827
827
(another version):
828
828
</para>
829
829
<example_commands>
@@ -1650,7 +1650,7 @@ Initialize <filename>en.po</filename> and <filename>pl.po</filename> from
1650
1650
</para>
1651
1651
<example_commands>
1652
1652
# ...
1653
- env.POInit(['en', 'pl']) # messages.pot --> [en.po, pl.po]
1653
+ env.POInit(['en', 'pl']) # messages.pot --> [en.po, pl.po]
1654
1654
</example_commands>
1655
1655
1656
1656
<para>
@@ -1660,7 +1660,7 @@ Initialize <filename>en.po</filename> and <filename>pl.po</filename> from
1660
1660
</para>
1661
1661
<example_commands>
1662
1662
# ...
1663
- env.POInit(['en', 'pl'], ['foo']) # foo.pot --> [en.po, pl.po]
1663
+ env.POInit(['en', 'pl'], ['foo']) # foo.pot --> [en.po, pl.po]
1664
1664
</example_commands>
1665
1665
1666
1666
<para>
@@ -1671,7 +1671,7 @@ variable:
1671
1671
</para>
1672
1672
<example_commands>
1673
1673
# ...
1674
- env.POInit(['en', 'pl'], POTDOMAIN='foo') # foo.pot --> [en.po, pl.po]
1674
+ env.POInit(['en', 'pl'], POTDOMAIN='foo') # foo.pot --> [en.po, pl.po]
1675
1675
</example_commands>
1676
1676
1677
1677
<para>
@@ -1756,7 +1756,7 @@ special alias (<literal>pot-update</literal> by default, see
1756
1756
&cv-link-POTUPDATE_ALIAS;) so you can update/create them easily with
1757
1757
<command>scons pot-update</command>. The file is not written until there is no
1758
1758
real change in internationalized messages (or in comments that enter
1759
- <literal>POT</literal> file).
1759
+ <literal>POT</literal> file).
1760
1760
</para>
1761
1761
1762
1762
<para>
@@ -1779,7 +1779,7 @@ Let's create <filename>po/</filename> directory and place following
1779
1779
env = Environment( tools = ['default', 'xgettext'] )
1780
1780
env.POTUpdate(['foo'], ['../a.cpp', '../b.cpp'])
1781
1781
env.POTUpdate(['bar'], ['../c.cpp', '../d.cpp'])
1782
- </example_commands>
1782
+ </example_commands>
1783
1783
<para>
1784
1784
Then invoke scons few times:
1785
1785
</para>
@@ -1800,7 +1800,7 @@ case default target <filename>messages.pot</filename> will be used. The
1800
1800
default target may also be overridden by setting &cv-link-POTDOMAIN; construction
1801
1801
variable or providing it as an override to &b-POTUpdate; builder:
1802
1802
</para>
1803
- <example_commands>
1803
+ <example_commands>
1804
1804
# SConstruct script
1805
1805
env = Environment( tools = ['default', 'xgettext'] )
1806
1806
env['POTDOMAIN'] = "foo"
@@ -1813,21 +1813,21 @@ variable or providing it as an override to &b-POTUpdate; builder:
1813
1813
The sources may be specified within separate file, for example
1814
1814
<filename>POTFILES.in</filename>:
1815
1815
</para>
1816
- <example_commands>
1816
+ <example_commands>
1817
1817
# POTFILES.in in 'po/' subdirectory
1818
1818
../a.cpp
1819
1819
../b.cpp
1820
1820
# end of file
1821
- </example_commands>
1821
+ </example_commands>
1822
1822
<para>
1823
1823
The name of the file (<filename>POTFILES.in</filename>) containing the list of
1824
1824
sources is provided via &cv-link-XGETTEXTFROM;:
1825
1825
</para>
1826
- <example_commands>
1826
+ <example_commands>
1827
1827
# SConstruct file in 'po/' subdirectory
1828
1828
env = Environment( tools = ['default', 'xgettext'] )
1829
1829
env.POTUpdate(XGETTEXTFROM = 'POTFILES.in')
1830
- </example_commands>
1830
+ </example_commands>
1831
1831
1832
1832
<para>
1833
1833
<emphasis>Example 4.</emphasis>
@@ -1898,10 +1898,10 @@ message <literal>"Hello from ../a.cpp"</literal>. When you reverse order in
1898
1898
# SConstruct file in '0/1/po/' subdirectory
1899
1899
env = Environment( tools = ['default', 'xgettext'] )
1900
1900
env.POTUpdate(XGETTEXTFROM = 'POTFILES.in', XGETTEXTPATH=['../../', '../'])
1901
- </example_commands>
1901
+ </example_commands>
1902
1902
<para>
1903
1903
then the <filename>messages.pot</filename> will contain
1904
- <literal>msgid "Hello from ../../a.cpp"</literal> line and not
1904
+ <literal>msgid "Hello from ../../a.cpp"</literal> line and not
1905
1905
<literal>msgid "Hello from ../a.cpp"</literal>.
1906
1906
</para>
1907
1907
@@ -1923,9 +1923,9 @@ does.
1923
1923
<para>
1924
1924
Target nodes defined through &b-POUpdate; are not built by default
1925
1925
(they're <literal>Ignore</literal>d from <literal>'.'</literal> node). Instead,
1926
- they are added automatically to special <literal>Alias</literal>
1926
+ they are added automatically to special <literal>Alias</literal>
1927
1927
(<literal>'po-update'</literal> by default). The alias name may be changed
1928
- through the &cv-link-POUPDATE_ALIAS; construction variable. You can easily
1928
+ through the &cv-link-POUPDATE_ALIAS; construction variable. You can easily
1929
1929
update <literal>PO</literal> files in your project by <command>scons
1930
1930
po-update</command>.
1931
1931
</para>
@@ -1989,7 +1989,7 @@ from <filename>messages.pot</filename> template:
1989
1989
</para>
1990
1990
<example_commands>
1991
1991
# produce 'en.po', 'pl.po' + files defined in 'LINGUAS':
1992
- env.POUpdate(['en', 'pl' ], LINGUAS_FILE = 1)
1992
+ env.POUpdate(['en', 'pl' ], LINGUAS_FILE = 1)
1993
1993
</example_commands>
1994
1994
1995
1995
<para>
@@ -2724,7 +2724,7 @@ a SCons script when invoking &b-Translate;
2724
2724
# SConscript in 'po/' directory
2725
2725
env = Environment( tools = ["default", "gettext"] )
2726
2726
env['POAUTOINIT'] = 1
2727
- env.Translate(['en','pl'], ['../a.cpp','../b.cpp'])
2727
+ env.Translate(['en','pl'], ['../a.cpp','../b.cpp'])
2728
2728
</example_commands>
2729
2729
2730
2730
<para>
@@ -2735,7 +2735,7 @@ If you wish, you may also stick to conventional style known from
2735
2735
</para>
2736
2736
<example_commands>
2737
2737
# LINGUAS
2738
- en pl
2738
+ en pl
2739
2739
#end
2740
2740
</example_commands>
2741
2741
@@ -2751,7 +2751,7 @@ b.cpp
2751
2751
env = Environment( tools = ["default", "gettext"] )
2752
2752
env['POAUTOINIT'] = 1
2753
2753
env['XGETTEXTPATH'] = ['../']
2754
- env.Translate(LINGUAS_FILE = 1, XGETTEXTFROM = 'POTFILES.in')
2754
+ env.Translate(LINGUAS_FILE = 1, XGETTEXTFROM = 'POTFILES.in')
2755
2755
</example_commands>
2756
2756
2757
2757
<para>
@@ -2778,7 +2778,7 @@ Let's prepare a development tree as below
2778
2778
<example_commands>
2779
2779
project/
2780
2780
+ SConstruct
2781
- + build/
2781
+ + build/
2782
2782
+ src/
2783
2783
+ po/
2784
2784
+ SConscript
0 commit comments