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

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 48cfbab was 61ad0b7f, checked in by Chris Staub <chris@…>, 15 years ago

Added installed directory info for a number of packages

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