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

Last change on this file since cc8d737 was cc8d737, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Use cat instead of echo wherever possible.

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