source: chapter06/gettext.xml@ 7bb9fda

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 7.7 7.8 7.9 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 7bb9fda was 7bb9fda, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Minor text and punctuation updates

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

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