source: chapter06/gettext.xml@ ef31c67

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since ef31c67 was ef31c67, checked in by Randy McMurchy <randy@…>, 16 years ago

Added a configure option to the Chapter 6 Gettext instructions so that the documentation is installed in a versioned directory

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8660 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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