source: BOOK/final-system/common/gettext.xml@ d0c5f50

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d0c5f50 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 13.9 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-gettext" role="wrap">
11 <?dbhtml filename="gettext.html"?>
12
13 <title>Gettext-&gettext-version;</title>
14
15 <indexterm zone="ch-system-gettext">
16 <primary sortas="a-Gettext">Gettext</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Gettext package contains utilities for internationalization
23 and localization. These allow programs to be compiled with NLS (Native
24 Language Support), enabling them to output messages in the user's native
25 language.</para>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <segmentedlist>
38 <segtitle>&dependencies;</segtitle>
39
40 <seglistitem>
41 <seg>Bash, Binutils, Bison, Coreutils, Diffutils, Gawk,
42 GCC, Glibc, Grep, Make, and Sed</seg>
43 </seglistitem>
44 </segmentedlist>
45
46 </sect2>
47
48 <sect2 role="installation">
49 <title>Installation of Gettext</title>
50
51 <para>Prepare Gettext for compilation:</para>
52
53<screen><userinput>./configure --prefix=/usr</userinput></screen>
54
55 <para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59 <para>To test the results, issue: <userinput>make check</userinput>.
60 This takes a very long time, around 7 SBUs.</para>
61
62 <para>Install the package:</para>
63
64<screen><userinput>make install</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-gettext" role="content">
69 <title>Contents of Gettext</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed libraries</segtitle>
74
75 <seglistitem>
76 <seg>autopoint, config.charset, config.rpath, envsubst, gettext,
77 gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
78 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
79 ngettext, and xgettext</seg>
80 <seg>libasprintf.[a,so], libgettextlib,so, libgettextpo.[a,so], and
81 libgettextsrc,so</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="gettextize">
146 <term><command>gettextize</command></term>
147 <listitem>
148 <para>Copies all standard Gettext files into the given top-level
149 directory of a package to begin internationalizing it</para>
150 <indexterm zone="ch-system-gettext gettextize">
151 <primary sortas="b-gettextize">gettextize</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="hostname-gettext">
157 <term><command>hostname</command></term>
158 <listitem>
159 <para>Displays a network hostname in various forms</para>
160 <indexterm zone="ch-system-gettext hostname-gettext">
161 <primary sortas="b-hostname-gettext">hostname</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="msgattrib">
167 <term><command>msgattrib</command></term>
168 <listitem>
169 <para>Filters the messages of a translation catalog according to their
170 attributes and manipulates the attributes</para>
171 <indexterm zone="ch-system-gettext msgattrib">
172 <primary sortas="b-msgattrib">msgattrib</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="msgcat">
178 <term><command>msgcat</command></term>
179 <listitem>
180 <para>Concatenates and merges the given
181 <filename class="extension">.po</filename> files</para>
182 <indexterm zone="ch-system-gettext msgcat">
183 <primary sortas="b-msgcat">msgcat</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="msgcmp">
189 <term><command>msgcmp</command></term>
190 <listitem>
191 <para>Compares two <filename class="extension">.po</filename>
192 files to check that both contain the same set of msgid strings</para>
193 <indexterm zone="ch-system-gettext msgcmp">
194 <primary sortas="b-msgcmp">msgcmp</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="msgcomm">
200 <term><command>msgcomm</command></term>
201 <listitem>
202 <para>Finds the messages that are common to to the given
203 <filename class="extension">.po</filename> files</para>
204 <indexterm zone="ch-system-gettext msgcomm">
205 <primary sortas="b-msgcomm">msgcomm</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="msgconv">
211 <term><command>msgconv</command></term>
212 <listitem>
213 <para>Converts a translation catalog to a different character
214 encoding</para>
215 <indexterm zone="ch-system-gettext msgconv">
216 <primary sortas="b-msgconv">msgconv</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="msgen">
222 <term><command>msgen</command></term>
223 <listitem>
224 <para>Creates an English translation catalog</para>
225 <indexterm zone="ch-system-gettext msgen">
226 <primary sortas="b-msgen">msgen</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="msgexec">
232 <term><command>msgexec</command></term>
233 <listitem>
234 <para>Applies a command to all translations of a translation
235 catalog</para>
236 <indexterm zone="ch-system-gettext msgexec">
237 <primary sortas="b-msgexec">msgexec</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="msgfilter">
243 <term><command>msgfilter</command></term>
244 <listitem>
245 <para>Applies a filter to all translations of a translation
246 catalog</para>
247 <indexterm zone="ch-system-gettext msgfilter">
248 <primary sortas="b-msgfilter">msgfilter</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="msgfmt">
254 <term><command>msgfmt</command></term>
255 <listitem>
256 <para>Generates a binary message catalog from a translation
257 catalog</para>
258 <indexterm zone="ch-system-gettext msgfmt">
259 <primary sortas="b-msgfmt">msgfmt</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="msggrep">
265 <term><command>msggrep</command></term>
266 <listitem>
267 <para>Extracts all messages of a translation catalog that match a
268 given pattern or belong to some given source files</para>
269 <indexterm zone="ch-system-gettext msggrep">
270 <primary sortas="b-msggrep">msggrep</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="msginit">
276 <term><command>msginit</command></term>
277 <listitem>
278 <para>Creates a new <filename class="extension">.po</filename> file,
279 initializing the meta information with values from the user's
280 environment</para>
281 <indexterm zone="ch-system-gettext msginit">
282 <primary sortas="b-msginit">msginit</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="msgmerge">
288 <term><command>msgmerge</command></term>
289 <listitem>
290 <para>Combines two raw translations into a single file</para>
291 <indexterm zone="ch-system-gettext msgmerge">
292 <primary sortas="b-msgmerge">msgmerge</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="msgunfmt">
298 <term><command>msgunfmt</command></term>
299 <listitem>
300 <para>Decompiles a binary message catalog into raw translation
301 text</para>
302 <indexterm zone="ch-system-gettext msgunfmt">
303 <primary sortas="b-msgunfmt">msgunfmt</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="msguniq">
309 <term><command>msguniq</command></term>
310 <listitem>
311 <para>Unifies duplicate translations in a translation catalog</para>
312 <indexterm zone="ch-system-gettext msguniq">
313 <primary sortas="b-msguniq">msguniq</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="ngettext">
319 <term><command>ngettext</command></term>
320 <listitem>
321 <para>Displays native language translations of a textual message whose
322 grammatical form depends on a number</para>
323 <indexterm zone="ch-system-gettext ngettext">
324 <primary sortas="b-ngettext">ngettext</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="xgettext">
330 <term><command>xgettext</command></term>
331 <listitem>
332 <para>Extracts the translatable message lines from the given source
333 files to make the first translation template</para>
334 <indexterm zone="ch-system-gettext xgettext">
335 <primary sortas="b-xgettext">xgettext</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="libasprintf">
341 <term><filename class="libraryfile">libasprintf</filename></term>
342 <listitem>
343 <para>defines the <emphasis>autosprintf</emphasis> class, which makes
344 C formatted output routines usable in C++ programs, for use with the
345 <emphasis>&lt;string&gt;</emphasis> strings and the
346 <emphasis>&lt;iostream&gt;</emphasis> streams</para>
347 <indexterm zone="ch-system-gettext libasprintf">
348 <primary sortas="c-libasprintf">libasprintf</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="libgettextlib">
354 <term><filename class="libraryfile">libgettextlib</filename></term>
355 <listitem>
356 <para>a private library containing common routines used by the
357 various Gettext programs; these are not intended for general use</para>
358 <indexterm zone="ch-system-gettext libgettextlib">
359 <primary sortas="c-libgettextlib">libgettextlib</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="libgettextpo">
365 <term><filename class="libraryfile">libgettextpo</filename></term>
366 <listitem>
367 <para>Used to write specialized programs that process
368 <filename class="extension">.po</filename> files; this library is
369 used when the standard applications shipped with Gettext (such as
370 <command>msgcomm</command>, <command>msgcmp</command>,
371 <command>msgattrib</command>, and <command>msgen</command>) will
372 not suffice</para>
373 <indexterm zone="ch-system-gettext libgettextpo">
374 <primary sortas="c-libgettextpo">libgettextpo</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libgettextsrc">
380 <term><filename class="libraryfile">libgettextsrc</filename></term>
381 <listitem>
382 <para>A private library containing common routines used by the
383 various Gettext programs; these are not intended for general use</para>
384 <indexterm zone="ch-system-gettext libgettextsrc">
385 <primary sortas="c-libgettextsrc">libgettextsrc</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 </variablelist>
391
392 </sect2>
393
394</sect1>
Note: See TracBrowser for help on using the repository browser.