source: BOOK/final-system/common/gettext.xml @ 3373dd11

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 3373dd11 was 3373dd11, checked in by Jim Gifford <clfs@…>, 18 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 13.6 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  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6  %general-entities;
7  %patches-entities;
8]>
9
10<sect1 id="ch-system-gettext" role="wrap">
11  <?dbhtml filename="gettext.html"?>
12
13  <title>Gettext-&gettext-version;</title>
14
15  <indexterm zone="ch-system-gettext">
16    <primary sortas="a-Gettext">Gettext</primary>
17  </indexterm>
18
19  <sect2 role="package">
20    <title/>
21
22    <para>The Gettext package contains utilities for internationalization
23    and localization. These allow programs to be compiled with NLS (Native
24    Language Support), enabling them to output messages in the user's native
25    language.</para>
26
27    <segmentedlist>
28      <segtitle>&dependencies;</segtitle>
29
30      <seglistitem>
31        <seg>Bash, Binutils, Bison, Coreutils, Diffutils, Gawk,
32        GCC, Glibc, Grep, Make, and Sed</seg>
33      </seglistitem>
34    </segmentedlist>
35
36  </sect2>
37
38  <sect2 role="installation">
39    <title>Installation of Gettext</title>
40
41    <para>Prepare Gettext for compilation:</para>
42
43<screen><userinput>./configure --prefix=/usr</userinput></screen>
44
45    <para>Compile the package:</para>
46
47<screen><userinput>make</userinput></screen>
48
49    <para>To test the results, issue: <userinput>make check</userinput>.
50    This takes a very long time, around 7 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,
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="gettextize">
136        <term><command>gettextize</command></term>
137        <listitem>
138          <para>Copies all standard Gettext files into the given top-level
139          directory of a package to begin internationalizing it</para>
140          <indexterm zone="ch-system-gettext gettextize">
141            <primary sortas="b-gettextize">gettextize</primary>
142          </indexterm>
143        </listitem>
144      </varlistentry>
145
146      <varlistentry id="hostname-gettext">
147        <term><command>hostname</command></term>
148        <listitem>
149          <para>Displays a network hostname in various forms</para>
150          <indexterm zone="ch-system-gettext hostname-gettext">
151            <primary sortas="b-hostname-gettext">hostname</primary>
152          </indexterm>
153        </listitem>
154      </varlistentry>
155
156      <varlistentry id="msgattrib">
157        <term><command>msgattrib</command></term>
158        <listitem>
159          <para>Filters the messages of a translation catalog according to their
160          attributes and manipulates the attributes</para>
161          <indexterm zone="ch-system-gettext msgattrib">
162            <primary sortas="b-msgattrib">msgattrib</primary>
163          </indexterm>
164        </listitem>
165      </varlistentry>
166
167      <varlistentry id="msgcat">
168        <term><command>msgcat</command></term>
169        <listitem>
170          <para>Concatenates and merges the given
171          <filename class="extension">.po</filename> files</para>
172          <indexterm zone="ch-system-gettext msgcat">
173            <primary sortas="b-msgcat">msgcat</primary>
174          </indexterm>
175        </listitem>
176      </varlistentry>
177
178      <varlistentry id="msgcmp">
179        <term><command>msgcmp</command></term>
180        <listitem>
181          <para>Compares two <filename class="extension">.po</filename>
182          files to check that both contain the same set of msgid strings</para>
183          <indexterm zone="ch-system-gettext msgcmp">
184            <primary sortas="b-msgcmp">msgcmp</primary>
185          </indexterm>
186        </listitem>
187      </varlistentry>
188
189      <varlistentry id="msgcomm">
190        <term><command>msgcomm</command></term>
191        <listitem>
192          <para>Finds the messages that are common to to the given
193          <filename class="extension">.po</filename> files</para>
194          <indexterm zone="ch-system-gettext msgcomm">
195            <primary sortas="b-msgcomm">msgcomm</primary>
196          </indexterm>
197        </listitem>
198      </varlistentry>
199
200      <varlistentry id="msgconv">
201        <term><command>msgconv</command></term>
202        <listitem>
203          <para>Converts a translation catalog to a different character
204          encoding</para>
205          <indexterm zone="ch-system-gettext msgconv">
206            <primary sortas="b-msgconv">msgconv</primary>
207          </indexterm>
208        </listitem>
209      </varlistentry>
210
211      <varlistentry id="msgen">
212        <term><command>msgen</command></term>
213        <listitem>
214          <para>Creates an English translation catalog</para>
215          <indexterm zone="ch-system-gettext msgen">
216            <primary sortas="b-msgen">msgen</primary>
217          </indexterm>
218        </listitem>
219      </varlistentry>
220
221      <varlistentry id="msgexec">
222        <term><command>msgexec</command></term>
223        <listitem>
224          <para>Applies a command to all translations of a translation
225          catalog</para>
226          <indexterm zone="ch-system-gettext msgexec">
227            <primary sortas="b-msgexec">msgexec</primary>
228          </indexterm>
229        </listitem>
230      </varlistentry>
231
232      <varlistentry id="msgfilter">
233        <term><command>msgfilter</command></term>
234        <listitem>
235          <para>Applies a filter to all translations of a translation
236          catalog</para>
237          <indexterm zone="ch-system-gettext msgfilter">
238            <primary sortas="b-msgfilter">msgfilter</primary>
239          </indexterm>
240        </listitem>
241      </varlistentry>
242
243      <varlistentry id="msgfmt">
244        <term><command>msgfmt</command></term>
245        <listitem>
246          <para>Generates a binary message catalog from a translation
247          catalog</para>
248          <indexterm zone="ch-system-gettext msgfmt">
249            <primary sortas="b-msgfmt">msgfmt</primary>
250          </indexterm>
251        </listitem>
252      </varlistentry>
253
254      <varlistentry id="msggrep">
255        <term><command>msggrep</command></term>
256        <listitem>
257          <para>Extracts all messages of a translation catalog that match a
258          given pattern or belong to some given source files</para>
259          <indexterm zone="ch-system-gettext msggrep">
260            <primary sortas="b-msggrep">msggrep</primary>
261          </indexterm>
262        </listitem>
263      </varlistentry>
264
265      <varlistentry id="msginit">
266        <term><command>msginit</command></term>
267        <listitem>
268          <para>Creates a new <filename class="extension">.po</filename> file,
269          initializing the meta information with values from the user's
270          environment</para>
271          <indexterm zone="ch-system-gettext msginit">
272            <primary sortas="b-msginit">msginit</primary>
273          </indexterm>
274        </listitem>
275      </varlistentry>
276
277      <varlistentry id="msgmerge">
278        <term><command>msgmerge</command></term>
279        <listitem>
280          <para>Combines two raw translations into a single file</para>
281          <indexterm zone="ch-system-gettext msgmerge">
282            <primary sortas="b-msgmerge">msgmerge</primary>
283          </indexterm>
284        </listitem>
285      </varlistentry>
286
287      <varlistentry id="msgunfmt">
288        <term><command>msgunfmt</command></term>
289        <listitem>
290          <para>Decompiles a binary message catalog into raw translation
291          text</para>
292          <indexterm zone="ch-system-gettext msgunfmt">
293            <primary sortas="b-msgunfmt">msgunfmt</primary>
294          </indexterm>
295        </listitem>
296      </varlistentry>
297
298      <varlistentry id="msguniq">
299        <term><command>msguniq</command></term>
300        <listitem>
301          <para>Unifies duplicate translations in a translation catalog</para>
302          <indexterm zone="ch-system-gettext msguniq">
303            <primary sortas="b-msguniq">msguniq</primary>
304          </indexterm>
305        </listitem>
306      </varlistentry>
307
308      <varlistentry id="ngettext">
309        <term><command>ngettext</command></term>
310        <listitem>
311          <para>Displays native language translations of a textual message whose
312          grammatical form depends on a number</para>
313          <indexterm zone="ch-system-gettext ngettext">
314            <primary sortas="b-ngettext">ngettext</primary>
315          </indexterm>
316        </listitem>
317      </varlistentry>
318
319      <varlistentry id="xgettext">
320        <term><command>xgettext</command></term>
321        <listitem>
322          <para>Extracts the translatable message lines from the given source
323          files to make the first translation template</para>
324          <indexterm zone="ch-system-gettext xgettext">
325            <primary sortas="b-xgettext">xgettext</primary>
326          </indexterm>
327        </listitem>
328      </varlistentry>
329
330      <varlistentry id="libasprintf">
331        <term><filename class="libraryfile">libasprintf</filename></term>
332        <listitem>
333          <para>defines the <emphasis>autosprintf</emphasis> class, which makes
334          C formatted output routines usable in C++ programs, for use with the
335          <emphasis>&lt;string&gt;</emphasis> strings and the
336          <emphasis>&lt;iostream&gt;</emphasis> streams</para>
337          <indexterm zone="ch-system-gettext libasprintf">
338            <primary sortas="c-libasprintf">libasprintf</primary>
339          </indexterm>
340        </listitem>
341      </varlistentry>
342
343      <varlistentry id="libgettextlib">
344        <term><filename class="libraryfile">libgettextlib</filename></term>
345        <listitem>
346          <para>a private library containing common routines used by the
347          various Gettext programs; these are not intended for general use</para>
348          <indexterm zone="ch-system-gettext libgettextlib">
349            <primary sortas="c-libgettextlib">libgettextlib</primary>
350          </indexterm>
351        </listitem>
352      </varlistentry>
353
354      <varlistentry id="libgettextpo">
355        <term><filename class="libraryfile">libgettextpo</filename></term>
356        <listitem>
357          <para>Used to write specialized programs that process
358          <filename class="extension">.po</filename> files; this library is
359          used when the standard applications shipped with Gettext (such as
360          <command>msgcomm</command>, <command>msgcmp</command>,
361          <command>msgattrib</command>, and <command>msgen</command>) will
362          not suffice</para>
363          <indexterm zone="ch-system-gettext libgettextpo">
364            <primary sortas="c-libgettextpo">libgettextpo</primary>
365          </indexterm>
366        </listitem>
367      </varlistentry>
368
369      <varlistentry id="libgettextsrc">
370        <term><filename class="libraryfile">libgettextsrc</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 libgettextsrc">
375            <primary sortas="c-libgettextsrc">libgettextsrc</primary>
376          </indexterm>
377        </listitem>
378      </varlistentry>
379
380    </variablelist>
381
382  </sect2>
383
384</sect1>
Note: See TracBrowser for help on using the repository browser.