source: chapter06/gettext.xml@ 8bc46a5

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.3 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 8bc46a5 was 8bc46a5, checked in by Ken Moffat <ken@…>, 18 years ago

Add more commands to lists of what gets installed, thanks to Chris Staub.

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

  • Property mode set to 100644
File size: 13.9 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 and
21 localization. These allow programs to be compiled with NLS (Native Language
22 Support), enabling them to output messages in the user's native
23 language.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>&gettext-ch6-sbu;</seg>
31 <seg>&gettext-ch6-du;</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 </sect2>
36
37 <sect2 role="installation">
38 <title>Installation of Gettext</title>
39
40 <para>Prepare Gettext for compilation:</para>
41
42<screen><userinput>./configure --prefix=/usr</userinput></screen>
43
44 <para>Compile the package:</para>
45
46<screen><userinput>make</userinput></screen>
47
48 <para>To test the results, issue:
49 <userinput>make check</userinput>.
50 This takes a very long time, around 5 SBUs.</para>
51
52 <para>Install the package:</para>
53
54<screen><userinput>make install</userinput></screen>
55
56 </sect2>
57
58 <sect2 id="contents-gettext" role="content">
59 <title>Contents of Gettext</title>
60
61 <segmentedlist>
62 <segtitle>Installed programs</segtitle>
63 <segtitle>Installed libraries</segtitle>
64
65 <seglistitem>
66 <seg>autopoint, config.charset, config.rpath, envsubst, gettext, gettext.sh,
67 gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
68 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
69 ngettext, and xgettext</seg>
70 <seg>libasprintf.{a,so}, libgettextlib.so, libgettextpo.{a,so}, and
71 libgettextsrc.so</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="autopoint">
81 <term><command>autopoint</command></term>
82 <listitem>
83 <para>Copies standard Gettext infrastructure files into a source
84 package</para>
85 <indexterm zone="ch-system-gettext autopoint">
86 <primary sortas="b-autopoint">autopoint</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry id="config.charset">
92 <term><command>config.charset</command></term>
93 <listitem>
94 <para>Outputs a system-dependent table of character encoding
95 aliases</para>
96 <indexterm zone="ch-system-gettext config.charset">
97 <primary sortas="b-config.charset">config.charset</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry id="config.rpath">
103 <term><command>config.rpath</command></term>
104 <listitem>
105 <para>Outputs a system-dependent set of variables, describing how
106 to set the runtime search path of shared libraries in an
107 executable</para>
108 <indexterm zone="ch-system-gettext config.rpath">
109 <primary sortas="b-config.rpath">config.rpath</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="envsubst">
115 <term><command>envsubst</command></term>
116 <listitem>
117 <para>Substitutes environment variables in shell format strings</para>
118 <indexterm zone="ch-system-gettext envsubst">
119 <primary sortas="b-envsubst">envsubst</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="gettext">
125 <term><command>gettext</command></term>
126 <listitem>
127 <para>Translates a natural language message into the user's language
128 by looking up the translation in a message catalog</para>
129 <indexterm zone="ch-system-gettext gettext">
130 <primary sortas="b-gettext">gettext</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="gettext.sh">
136 <term><command>gettext.sh</command></term>
137 <listitem>
138 <para>Primarily serves as a shell function library for gettext</para>
139 <indexterm zone="ch-system-gettext gettext.sh">
140 <primary sortas="b-gettext.sh">gettext.sh</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.