source: chapter06/gettext.xml@ 0b960a2

Last change on this file since 0b960a2 was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 11.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-gettext" role="wrap">
7<title>Gettext-&gettext-version;</title>
8<?dbhtml filename="gettext.html"?>
9
10<indexterm zone="ch-system-gettext"><primary sortas="a-Gettext">Gettext</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Gettext package contains utilities for internationalization and
14localization. These allow programs to be compiled with NLS, enabling them
15to output messages in the user's native language.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.5 SBU</seg><seg>55 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>&dependencies;</segtitle>
25<seglistitem><seg>Bash, Binutils, Bison, Coreutils,
26Diffutils, Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>Installation of Gettext</title>
32
33<para>Prepare Gettext for compilation:</para>
34
35<screen><userinput>./configure --prefix=/usr</userinput></screen>
36
37<para>Compile the package:</para>
38
39<screen><userinput>make</userinput></screen>
40
41<para>To test the results, issue:
42<userinput>make check</userinput>. This takes a very long time, around
437 SBUs.</para>
44
45<para>Install the package:</para>
46
47<screen><userinput>make install</userinput></screen>
48
49</sect2>
50
51
52<sect2 id="contents-gettext" role="content"><title>Contents of Gettext</title>
53
54<segmentedlist>
55<segtitle>Installed programs</segtitle>
56<segtitle>Installed libraries</segtitle>
57<seglistitem><seg>autopoint, config.charset, config.rpath, envsubst, gettext,
58gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
59msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
60ngettext, and xgettext</seg>
61<seg>libasprintf[a,so], libgettextlib[a,so], libgettextpo[a,so] and libgettextsrc[a,so]</seg></seglistitem>
62</segmentedlist>
63
64
65<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
66<?dbfo list-presentation="list"?>
67<?dbhtml list-presentation="table"?>
68
69<varlistentry id="autopoint">
70<term><command>autopoint</command></term>
71<listitem>
72<para>Copies standard Gettext infrastructure files into a source package</para>
73<indexterm zone="ch-system-gettext autopoint"><primary sortas="b-autopoint">autopoint</primary></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 aliases</para>
81<indexterm zone="ch-system-gettext config.charset"><primary sortas="b-config.charset">config.charset</primary></indexterm>
82</listitem>
83</varlistentry>
84
85<varlistentry id="config.rpath">
86<term><command>config.rpath</command></term>
87<listitem>
88<para>Outputs a system-dependent set of variables, describing how to set the
89runtime search path of shared libraries in an executable</para>
90<indexterm zone="ch-system-gettext config.rpath"><primary sortas="b-config.rpath">config.rpath</primary></indexterm>
91</listitem>
92</varlistentry>
93
94<varlistentry id="envsubst">
95<term><command>envsubst</command></term>
96<listitem>
97<para>Substitutes environment variables in shell format strings</para>
98<indexterm zone="ch-system-gettext envsubst"><primary sortas="b-envsubst">envsubst</primary></indexterm>
99</listitem>
100</varlistentry>
101
102<varlistentry id="gettext">
103<term><command>gettext</command></term>
104<listitem>
105<para>Translates a natural language message into the user's language
106by looking up the translation in a message catalog</para>
107<indexterm zone="ch-system-gettext gettext"><primary sortas="b-gettext">gettext</primary></indexterm>
108</listitem>
109</varlistentry>
110
111<varlistentry id="gettextize">
112<term><command>gettextize</command></term>
113<listitem>
114<para>Copies all standard Gettext files into the given top-level
115directory of a package to begin internationalizing it</para>
116<indexterm zone="ch-system-gettext gettextize"><primary sortas="b-gettextize">gettextize</primary></indexterm>
117</listitem>
118</varlistentry>
119
120<varlistentry id="hostname-gettext">
121<term><command>hostname</command></term>
122<listitem>
123<para>Displays a network hostname in various forms</para>
124<indexterm zone="ch-system-gettext hostname-gettext"><primary sortas="b-hostname-gettext">hostname</primary></indexterm>
125</listitem>
126</varlistentry>
127
128<varlistentry id="msgattrib">
129<term><command>msgattrib</command></term>
130<listitem>
131<para>Filters the messages of a translation catalog according to their
132attributes and manipulates the attributes</para>
133<indexterm zone="ch-system-gettext msgattrib"><primary sortas="b-msgattrib">msgattrib</primary></indexterm>
134</listitem>
135</varlistentry>
136
137<varlistentry id="msgcat">
138<term><command>msgcat</command></term>
139<listitem>
140<para>Concatenates and merges the given <filename class="extension">.po</filename> files</para>
141<indexterm zone="ch-system-gettext msgcat"><primary sortas="b-msgcat">msgcat</primary></indexterm>
142</listitem>
143</varlistentry>
144
145<varlistentry id="msgcmp">
146<term><command>msgcmp</command></term>
147<listitem>
148<para>Compares two <filename class="extension">.po</filename>
149files to check that both contain the same set of msgid strings</para>
150<indexterm zone="ch-system-gettext msgcmp"><primary sortas="b-msgcmp">msgcmp</primary></indexterm>
151</listitem>
152</varlistentry>
153
154<varlistentry id="msgcomm">
155<term><command>msgcomm</command></term>
156<listitem>
157<para>Finds the messages that are common to
158to the given <filename class="extension">.po</filename> files</para>
159<indexterm zone="ch-system-gettext msgcomm"><primary sortas="b-msgcomm">msgcomm</primary></indexterm>
160</listitem>
161</varlistentry>
162
163<varlistentry id="msgconv">
164<term><command>msgconv</command></term>
165<listitem>
166<para>Converts a translation catalog to a different character encoding</para>
167<indexterm zone="ch-system-gettext msgconv"><primary sortas="b-msgconv">msgconv</primary></indexterm>
168</listitem>
169</varlistentry>
170
171<varlistentry id="msgen">
172<term><command>msgen</command></term>
173<listitem>
174<para>Creates an English translation catalog</para>
175<indexterm zone="ch-system-gettext msgen"><primary sortas="b-msgen">msgen</primary></indexterm>
176</listitem>
177</varlistentry>
178
179<varlistentry id="msgexec">
180<term><command>msgexec</command></term>
181<listitem>
182<para>Applies a command to all translations of a translation catalog</para>
183<indexterm zone="ch-system-gettext msgexec"><primary sortas="b-msgexec">msgexec</primary></indexterm>
184</listitem>
185</varlistentry>
186
187<varlistentry id="msgfilter">
188<term><command>msgfilter</command></term>
189<listitem>
190<para>Applies a filter to all translations of a translation catalog</para>
191<indexterm zone="ch-system-gettext msgfilter"><primary sortas="b-msgfilter">msgfilter</primary></indexterm>
192</listitem>
193</varlistentry>
194
195<varlistentry id="msgfmt">
196<term><command>msgfmt</command></term>
197<listitem>
198<para>Generates a binary message catalog from from a translation catalog</para>
199<indexterm zone="ch-system-gettext msgfmt"><primary sortas="b-msgfmt">msgfmt</primary></indexterm>
200</listitem>
201</varlistentry>
202
203<varlistentry id="msggrep">
204<term><command>msggrep</command></term>
205<listitem>
206<para>Extracts all messages of a translation catalog that match a
207given pattern or belong to some given source files</para>
208<indexterm zone="ch-system-gettext msggrep"><primary sortas="b-msggrep">msggrep</primary></indexterm>
209</listitem>
210</varlistentry>
211
212<varlistentry id="msginit">
213<term><command>msginit</command></term>
214<listitem>
215<para>Creates a new <filename class="extension">.po</filename> file, initializing the meta
216information with values from the user's environment</para>
217<indexterm zone="ch-system-gettext msginit"><primary sortas="b-msginit">msginit</primary></indexterm>
218</listitem>
219</varlistentry>
220
221<varlistentry id="msgmerge">
222<term><command>msgmerge</command></term>
223<listitem>
224<para>Combines two raw translations into a single file</para>
225<indexterm zone="ch-system-gettext msgmerge"><primary sortas="b-msgmerge">msgmerge</primary></indexterm>
226</listitem>
227</varlistentry>
228
229<varlistentry id="msgunfmt">
230<term><command>msgunfmt</command></term>
231<listitem>
232<para>Decompiles a binary message catalog into raw translation text</para>
233<indexterm zone="ch-system-gettext msgunfmt"><primary sortas="b-msgunfmt">msgunfmt</primary></indexterm>
234</listitem>
235</varlistentry>
236
237<varlistentry id="msguniq">
238<term><command>msguniq</command></term>
239<listitem>
240<para>Unifies duplicate translations in a translation catalog</para>
241<indexterm zone="ch-system-gettext msguniq"><primary sortas="b-msguniq">msguniq</primary></indexterm>
242</listitem>
243</varlistentry>
244
245<varlistentry id="ngettext">
246<term><command>ngettext</command></term>
247<listitem>
248<para>Displays native language translations of a textual message whose
249grammatical form depends on a number</para>
250<indexterm zone="ch-system-gettext ngettext"><primary sortas="b-ngettext">ngettext</primary></indexterm>
251</listitem>
252</varlistentry>
253
254<varlistentry id="xgettext">
255<term><command>xgettext</command></term>
256<listitem>
257<para>Extracts the translatable message lines from the given source
258files to make the first translation template</para>
259<indexterm zone="ch-system-gettext xgettext"><primary sortas="b-xgettext">xgettext</primary></indexterm>
260</listitem>
261</varlistentry>
262
263<varlistentry id="libasprintf">
264<term><filename class="libraryfile">libasprintf</filename></term>
265<listitem>
266<para>defines the <emphasis>autosprintf</emphasis> class, which makes
267C formatted output routines usable in C++ programs, for use with the
268<emphasis>&lt;string&gt;</emphasis> strings and the
269<emphasis>&lt;iostream&gt;</emphasis> streams</para>
270<indexterm zone="ch-system-gettext libasprintf"><primary sortas="c-libasprintf">libasprintf</primary></indexterm>
271</listitem>
272</varlistentry>
273
274<varlistentry id="libgettextlib">
275<term><filename class="libraryfile">libgettextlib</filename></term>
276<listitem>
277<para>a private library containing common routines used by the various Gettext
278programs; these are not intended for general use</para>
279<indexterm zone="ch-system-gettext libgettextlib"><primary sortas="c-libgettextlib">libgettextlib</primary></indexterm>
280</listitem>
281</varlistentry>
282
283<varlistentry id="libgettextpo">
284<term><filename class="libraryfile">libgettextpo</filename></term>
285<listitem>
286<para>Used to write specialized programs that process <filename
287class="extension">.po</filename> files; this library is used when the
288standard applications shipped with Gettext (such as
289<command>msgcomm</command>, <command>msgcmp</command>,
290<command>msgattrib</command>, and <command>msgen</command>) will not
291suffice</para>
292<indexterm zone="ch-system-gettext libgettextpo"><primary sortas="c-libgettextpo">libgettextpo</primary></indexterm>
293</listitem>
294</varlistentry>
295
296<varlistentry id="libgettextsrc">
297<term><filename class="libraryfile">libgettextsrc</filename></term>
298<listitem>
299<para>A private library containing common routines used by the various Gettext
300programs; these are not intended for general use</para>
301<indexterm zone="ch-system-gettext libgettextsrc"><primary sortas="c-libgettextsrc">libgettextsrc</primary></indexterm>
302</listitem>
303</varlistentry>
304</variablelist>
305
306</sect2>
307
308</sect1>
309
Note: See TracBrowser for help on using the repository browser.