source: general/genutils/intltool.xml@ 4da8233

xry111/intltool
Last change on this file since 4da8233 was 4da8233, checked in by Xi Ruoyao <xry111@…>, 2 years ago

Add XML::Parser back

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY intltool-download-http "http://launchpad.net/intltool/trunk/&intltool-version;/+download/intltool-&intltool-version;.tar.gz">
8 <!ENTITY intltool-download-ftp " ">
9 <!ENTITY intltool-md5sum "12e517cac2b57a0121cda351570f1e63">
10 <!ENTITY intltool-size "159 KB">
11 <!ENTITY intltool-buildsize "1.5 MB">
12 <!ENTITY intltool-time "less than 0.1 SBU">
13]>
14
15<sect1 id="intltool" xreflabel="Intltool-&intltool-version;">
16 <?dbhtml filename="intltool.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>Intltool-&intltool-version;</title>
23
24 <indexterm zone="intltool">
25 <primary sortas="a-Intltool">Intltool</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Intltool</title>
30
31 <para>
32 The <application>Intltool</application> is an internationalization
33 tool used for extracting translatable strings from source files,
34 collecting the extracted strings with messages from traditional
35 source files (<filename class="directory">&lt;source
36 directory&gt;/&lt;package&gt;/po</filename>) and merging the
37 translations into <filename>.xml</filename>,
38 <filename>.desktop</filename> and <filename>.oaf</filename> files.
39 </para>
40
41 &lfs111_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&intltool-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&intltool-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &intltool-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &intltool-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &intltool-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &intltool-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Intltool Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="perl-xml-parser"/>
82 </para>
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/intltool"/>
86 </para>
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Intltool</title>
91
92 <para>First fix a warning that is caused by perl-5.22 and later:</para>
93
94<screen><userinput>sed -i 's:\\\${:\\\$\\{:' intltool-update.in</userinput></screen>
95
96 <note><para>The above regular expression looks unusual because of all the
97 backslashes. What it does is add a backslash before the right brace
98 character in the sequence '\${' resulting in '\$\{'.</para></note>
99
100 <para>
101 Install <application>Intltool</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>./configure --prefix=/usr &amp;&amp;
106make</userinput></screen>
107
108 <para>
109 To test the results, issue: <command>make check</command>.
110 </para>
111
112 <para>
113 Now, as the <systemitem class="username">root</systemitem> user:
114 </para>
115
116<screen role="root"><userinput>make install &amp;&amp;
117install -v -m644 -D doc/I18N-HOWTO /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="content">
122 <title>Contents</title>
123
124 <segmentedlist>
125 <segtitle>Installed Programs</segtitle>
126 <segtitle>Installed Libraries</segtitle>
127 <segtitle>Installed Directories</segtitle>
128
129 <seglistitem>
130 <seg>
131 intltool-extract, intltool-merge, intltool-prepare,
132 intltool-update and intltoolize
133 </seg>
134 <seg>
135 None
136 </seg>
137 <seg>
138 /usr/share/doc/intltool-&intltool-version; and
139 /usr/share/intltool
140 </seg>
141 </seglistitem>
142 </segmentedlist>
143
144 <variablelist>
145 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
146 <?dbfo list-presentation="list"?>
147 <?dbhtml list-presentation="table"?>
148
149 <varlistentry id="intltoolize">
150 <term><command>intltoolize</command></term>
151 <listitem>
152 <para>
153 prepares a package to use
154 <application>intltool</application>.
155 </para>
156 <indexterm zone="intltool intltoolize">
157 <primary sortas="b-intltoolize">intltoolize</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="intltool-extract">
163 <term><command>intltool-extract</command></term>
164 <listitem>
165 <para>
166 generates header files that can be read by
167 <command>gettext</command>.
168 </para>
169 <indexterm zone="intltool intltool-extract">
170 <primary sortas="b-intltool-extract">intltool-extract</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="intltool-merge">
176 <term><command>intltool-merge</command></term>
177 <listitem>
178 <para>
179 merges translated strings into various file types.
180 </para>
181 <indexterm zone="intltool intltool-merge">
182 <primary sortas="b-intltool-merge">intltool-merge</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="intltool-prepare">
188 <term><command>intltool-prepare</command></term>
189 <listitem>
190 <para>
191 updates pot files and merges them with translation files.
192 </para>
193 <indexterm zone="intltool intltool-prepare">
194 <primary sortas="b-intltool-prepare">intltool-prepare</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="intltool-update">
200 <term><command>intltool-update</command></term>
201 <listitem>
202 <para>
203 updates the <filename>po</filename> template files and merges
204 them with the translations.
205 </para>
206 <indexterm zone="intltool intltool-update">
207 <primary sortas="b-intltool-update">intltool-update</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 </variablelist>
213
214 </sect2>
215
216</sect1>
Note: See TracBrowser for help on using the repository browser.