source: chapter06/gettext.xml@ e747759

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.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 e747759 was e747759, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added sect1info blocks to packages pages.

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

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