source: chapter06/gettext.xml@ 0c81bec

Last change on this file since 0c81bec was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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