source: clfs-sysroot/BOOK/final-system/common/gettext.xml@ 46f892a

Last change on this file since 46f892a was 0e17eae, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Fix gettext compilation issues.

  • Property mode set to 100644
File size: 14.1 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[02095ae]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-gettext" role="wrap">
9 <?dbhtml filename="gettext.html"?>
10
11 <title>Gettext-&gettext-version;</title>
12
13 <indexterm zone="ch-system-gettext">
14 <primary sortas="a-Gettext">Gettext</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Gettext package contains utilities for internationalization
21 and localization. These allow programs to be compiled with NLS (Native
22 Language Support), enabling them to output messages in the user's native
23 language.</para>
24
25 </sect2>
26
27 <sect2 role="installation">
28 <title>Installation of Gettext</title>
29
[0e17eae]30 <para os="c1">When Cross Compiling the configure script does not
31 run a select few tests, Set the values manually:</para>
32
33<screen os="c2"><userinput>echo "am_cv_func_iconv_works=yes" &gt; config.cache
34echo "gl_cv_func_wcwidth_works=yes" &gt;&gt; config.cache
35echo "gt_cv_func_printf_posix=yes" &gt;&gt; config.cache
36echo "gt_cv_int_divbyzero_sigfpe=yes" &gt;&gt; config.cache</userinput></screen>
37
[02095ae]38 <para os="a">Prepare Gettext for compilation:</para>
39
[cee2ca2]40<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
[0e17eae]41 --prefix=/usr --cache-file=config.cache</userinput></screen>
[02095ae]42
43 <para os="c">Compile the package:</para>
44
45<screen os="d"><userinput>make</userinput></screen>
46
47 <para os="e">Install the package:</para>
48
[586feb7]49<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
[02095ae]50
51 </sect2>
52
53 <sect2 id="contents-gettext" role="content">
54 <title>Contents of Gettext</title>
55
56 <segmentedlist>
57 <segtitle>Installed programs</segtitle>
58 <segtitle>Installed libraries</segtitle>
59
60 <seglistitem>
[82b662d]61 <seg>autopoint, config.charset, config.rpath, envsubst, gettext, gettext.sh,
[02095ae]62 gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
63 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
64 ngettext, and xgettext</seg>
[586feb7]65 <seg>libasprintf.[a,so], libgettextlib.so, libgettextpo.[a,so], and
66 libgettextsrc.so</seg>
[02095ae]67 </seglistitem>
68 </segmentedlist>
69
70 <variablelist>
71 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
72 <?dbfo list-presentation="list"?>
73 <?dbhtml list-presentation="table"?>
74
75 <varlistentry id="autopoint">
76 <term><command>autopoint</command></term>
77 <listitem>
78 <para>Copies standard Gettext infrastructure files into a source
79 package</para>
80 <indexterm zone="ch-system-gettext autopoint">
81 <primary sortas="b-autopoint">autopoint</primary>
82 </indexterm>
83 </listitem>
84 </varlistentry>
85
86 <varlistentry id="config.charset">
87 <term><command>config.charset</command></term>
88 <listitem>
89 <para>Outputs a system-dependent table of character encoding
90 aliases</para>
91 <indexterm zone="ch-system-gettext config.charset">
92 <primary sortas="b-config.charset">config.charset</primary>
93 </indexterm>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry id="config.rpath">
98 <term><command>config.rpath</command></term>
99 <listitem>
100 <para>Outputs a system-dependent set of variables, describing how
101 to set the runtime search path of shared libraries in an
102 executable</para>
103 <indexterm zone="ch-system-gettext config.rpath">
104 <primary sortas="b-config.rpath">config.rpath</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="envsubst">
110 <term><command>envsubst</command></term>
111 <listitem>
112 <para>Substitutes environment variables in shell format strings</para>
113 <indexterm zone="ch-system-gettext envsubst">
114 <primary sortas="b-envsubst">envsubst</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="gettext">
120 <term><command>gettext</command></term>
121 <listitem>
122 <para>Translates a natural language message into the user's language
123 by looking up the translation in a message catalog</para>
124 <indexterm zone="ch-system-gettext gettext">
125 <primary sortas="b-gettext">gettext</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
[82b662d]130 <varlistentry id="gettext.sh">
131 <term><command>gettext.sh</command></term>
132 <listitem>
133 <para>Primarily serves as a shell function library for gettext</para>
134 <indexterm zone="ch-system-gettext gettext.sh">
135 <primary sortas="b-gettext.sh">gettext.sh</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
[02095ae]140 <varlistentry id="gettextize">
141 <term><command>gettextize</command></term>
142 <listitem>
143 <para>Copies all standard Gettext files into the given top-level
144 directory of a package to begin internationalizing it</para>
145 <indexterm zone="ch-system-gettext gettextize">
146 <primary sortas="b-gettextize">gettextize</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="hostname-gettext">
152 <term><command>hostname</command></term>
153 <listitem>
154 <para>Displays a network hostname in various forms</para>
155 <indexterm zone="ch-system-gettext hostname-gettext">
156 <primary sortas="b-hostname-gettext">hostname</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="msgattrib">
162 <term><command>msgattrib</command></term>
163 <listitem>
164 <para>Filters the messages of a translation catalog according to their
165 attributes and manipulates the attributes</para>
166 <indexterm zone="ch-system-gettext msgattrib">
167 <primary sortas="b-msgattrib">msgattrib</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="msgcat">
173 <term><command>msgcat</command></term>
174 <listitem>
175 <para>Concatenates and merges the given
176 <filename class="extension">.po</filename> files</para>
177 <indexterm zone="ch-system-gettext msgcat">
178 <primary sortas="b-msgcat">msgcat</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="msgcmp">
184 <term><command>msgcmp</command></term>
185 <listitem>
186 <para>Compares two <filename class="extension">.po</filename>
187 files to check that both contain the same set of msgid strings</para>
188 <indexterm zone="ch-system-gettext msgcmp">
189 <primary sortas="b-msgcmp">msgcmp</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="msgcomm">
195 <term><command>msgcomm</command></term>
196 <listitem>
197 <para>Finds the messages that are common to to the given
198 <filename class="extension">.po</filename> files</para>
199 <indexterm zone="ch-system-gettext msgcomm">
200 <primary sortas="b-msgcomm">msgcomm</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="msgconv">
206 <term><command>msgconv</command></term>
207 <listitem>
208 <para>Converts a translation catalog to a different character
209 encoding</para>
210 <indexterm zone="ch-system-gettext msgconv">
211 <primary sortas="b-msgconv">msgconv</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="msgen">
217 <term><command>msgen</command></term>
218 <listitem>
219 <para>Creates an English translation catalog</para>
220 <indexterm zone="ch-system-gettext msgen">
221 <primary sortas="b-msgen">msgen</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="msgexec">
227 <term><command>msgexec</command></term>
228 <listitem>
229 <para>Applies a command to all translations of a translation
230 catalog</para>
231 <indexterm zone="ch-system-gettext msgexec">
232 <primary sortas="b-msgexec">msgexec</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="msgfilter">
238 <term><command>msgfilter</command></term>
239 <listitem>
240 <para>Applies a filter to all translations of a translation
241 catalog</para>
242 <indexterm zone="ch-system-gettext msgfilter">
243 <primary sortas="b-msgfilter">msgfilter</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="msgfmt">
249 <term><command>msgfmt</command></term>
250 <listitem>
251 <para>Generates a binary message catalog from a translation
252 catalog</para>
253 <indexterm zone="ch-system-gettext msgfmt">
254 <primary sortas="b-msgfmt">msgfmt</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="msggrep">
260 <term><command>msggrep</command></term>
261 <listitem>
262 <para>Extracts all messages of a translation catalog that match a
263 given pattern or belong to some given source files</para>
264 <indexterm zone="ch-system-gettext msggrep">
265 <primary sortas="b-msggrep">msggrep</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="msginit">
271 <term><command>msginit</command></term>
272 <listitem>
273 <para>Creates a new <filename class="extension">.po</filename> file,
274 initializing the meta information with values from the user's
275 environment</para>
276 <indexterm zone="ch-system-gettext msginit">
277 <primary sortas="b-msginit">msginit</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="msgmerge">
283 <term><command>msgmerge</command></term>
284 <listitem>
285 <para>Combines two raw translations into a single file</para>
286 <indexterm zone="ch-system-gettext msgmerge">
287 <primary sortas="b-msgmerge">msgmerge</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="msgunfmt">
293 <term><command>msgunfmt</command></term>
294 <listitem>
295 <para>Decompiles a binary message catalog into raw translation
296 text</para>
297 <indexterm zone="ch-system-gettext msgunfmt">
298 <primary sortas="b-msgunfmt">msgunfmt</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="msguniq">
304 <term><command>msguniq</command></term>
305 <listitem>
306 <para>Unifies duplicate translations in a translation catalog</para>
307 <indexterm zone="ch-system-gettext msguniq">
308 <primary sortas="b-msguniq">msguniq</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="ngettext">
314 <term><command>ngettext</command></term>
315 <listitem>
316 <para>Displays native language translations of a textual message whose
317 grammatical form depends on a number</para>
318 <indexterm zone="ch-system-gettext ngettext">
319 <primary sortas="b-ngettext">ngettext</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="xgettext">
325 <term><command>xgettext</command></term>
326 <listitem>
327 <para>Extracts the translatable message lines from the given source
328 files to make the first translation template</para>
329 <indexterm zone="ch-system-gettext xgettext">
330 <primary sortas="b-xgettext">xgettext</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="libasprintf">
336 <term><filename class="libraryfile">libasprintf</filename></term>
337 <listitem>
338 <para>defines the <emphasis>autosprintf</emphasis> class, which makes
339 C formatted output routines usable in C++ programs, for use with the
340 <emphasis>&lt;string&gt;</emphasis> strings and the
341 <emphasis>&lt;iostream&gt;</emphasis> streams</para>
342 <indexterm zone="ch-system-gettext libasprintf">
343 <primary sortas="c-libasprintf">libasprintf</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="libgettextlib">
349 <term><filename class="libraryfile">libgettextlib</filename></term>
350 <listitem>
351 <para>a private library containing common routines used by the
352 various Gettext programs; these are not intended for general use</para>
353 <indexterm zone="ch-system-gettext libgettextlib">
354 <primary sortas="c-libgettextlib">libgettextlib</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="libgettextpo">
360 <term><filename class="libraryfile">libgettextpo</filename></term>
361 <listitem>
362 <para>Used to write specialized programs that process
363 <filename class="extension">.po</filename> files; this library is
364 used when the standard applications shipped with Gettext (such as
365 <command>msgcomm</command>, <command>msgcmp</command>,
366 <command>msgattrib</command>, and <command>msgen</command>) will
367 not suffice</para>
368 <indexterm zone="ch-system-gettext libgettextpo">
369 <primary sortas="c-libgettextpo">libgettextpo</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 <varlistentry id="libgettextsrc">
375 <term><filename class="libraryfile">libgettextsrc</filename></term>
376 <listitem>
377 <para>A private library containing common routines used by the
378 various Gettext programs; these are not intended for general use</para>
379 <indexterm zone="ch-system-gettext libgettextsrc">
380 <primary sortas="c-libgettextsrc">libgettextsrc</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 </variablelist>
386
387 </sect2>
388
389</sect1>
Note: See TracBrowser for help on using the repository browser.