source: clfs-sysroot/BOOK/final-system/common/gettext.xml@ 34c890b

Last change on this file since 34c890b was 02095ae, checked in by Jim Gifford <clfs@…>, 19 years ago

r3633@server (orig r1649): jciccone | 2006-05-25 16:48:42 -0700
Added the Initial clfs-2.0 branch using sysroot builds.

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