source: chapter06/gettext.xml@ 131c907

7.9-systemd 7.9-systemd-rc1 7.9-systemd-rc2 systemd
Last change on this file since 131c907 was 131c907, checked in by DJ Lucas <dj@…>, 6 years ago

Sync with trunk r10891, update to udev-1.10.6, update to systemd-228.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10982 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 remap="configure">./configure --prefix=/usr \
49 --disable-static \
50 --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
51
52 <para>Compile the package:</para>
53
54<screen><userinput remap="make">make</userinput></screen>
55
56 <para>To test the results (this takes a long time, around 3 SBUs),
57 issue:</para>
58
59<screen><userinput remap="test">make check</userinput></screen>
60
61 <para>Install the package:</para>
62
63<screen><userinput remap="install">make install
64chmod -v 0755 /usr/lib/preloadable_libintl.so</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-gettext" role="content">
69 <title>Contents of Gettext</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed libraries</segtitle>
74 <segtitle>Installed directories</segtitle>
75
76 <seglistitem>
77 <seg>autopoint, envsubst, gettext, gettext.sh,
78 gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
79 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
80 ngettext, recode-sr-latin, and xgettext</seg>
81 <seg>libasprintf.so, libgettextlib.so, libgettextpo.so,
82 libgettextsrc.so, and preloadable_libintl.so</seg>
83 <seg>/usr/lib/gettext, /usr/share/doc/gettext-&gettext-version;, and
84 /usr/share/gettext</seg>
85 </seglistitem>
86 </segmentedlist>
87
88 <variablelist>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
92
93 <varlistentry id="autopoint">
94 <term><command>autopoint</command></term>
95 <listitem>
96 <para>Copies standard Gettext infrastructure files into a source
97 package</para>
98 <indexterm zone="ch-system-gettext autopoint">
99 <primary sortas="b-autopoint">autopoint</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="envsubst">
105 <term><command>envsubst</command></term>
106 <listitem>
107 <para>Substitutes environment variables in shell format strings</para>
108 <indexterm zone="ch-system-gettext envsubst">
109 <primary sortas="b-envsubst">envsubst</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="gettext">
115 <term><command>gettext</command></term>
116 <listitem>
117 <para>Translates a natural language message into the user's language
118 by looking up the translation in a message catalog</para>
119 <indexterm zone="ch-system-gettext gettext">
120 <primary sortas="b-gettext">gettext</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="gettext.sh">
126 <term><command>gettext.sh</command></term>
127 <listitem>
128 <para>Primarily serves as a shell function library for gettext</para>
129 <indexterm zone="ch-system-gettext gettext.sh">
130 <primary sortas="b-gettext.sh">gettext.sh</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="recode-sr-latin">
320 <term><command>recode-sr-latin</command></term>
321 <listitem>
322 <para>Recodes Serbian text from Cyrillic to Latin script</para>
323 <indexterm zone="ch-system-gettext recode-sr-latin">
324 <primary sortas="b-recode-sr-latin">recode-sr-latin</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="xgettext">
330 <term><command>xgettext</command></term>
331 <listitem>
332 <para>Extracts the translatable message lines from the given source
333 files to make the first translation template</para>
334 <indexterm zone="ch-system-gettext xgettext">
335 <primary sortas="b-xgettext">xgettext</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="libasprintf">
341 <term><filename class="libraryfile">libasprintf</filename></term>
342 <listitem>
343 <para>defines the <emphasis>autosprintf</emphasis> class, which makes
344 C formatted output routines usable in C++ programs, for use with the
345 <emphasis>&lt;string&gt;</emphasis> strings and the
346 <emphasis>&lt;iostream&gt;</emphasis> streams</para>
347 <indexterm zone="ch-system-gettext libasprintf">
348 <primary sortas="c-libasprintf">libasprintf</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="libgettextlib">
354 <term><filename class="libraryfile">libgettextlib</filename></term>
355 <listitem>
356 <para>a private library containing common routines used by the
357 various Gettext programs; these are not intended for general use</para>
358 <indexterm zone="ch-system-gettext libgettextlib">
359 <primary sortas="c-libgettextlib">libgettextlib</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="libgettextpo">
365 <term><filename class="libraryfile">libgettextpo</filename></term>
366 <listitem>
367 <para>Used to write specialized programs that process
368 <filename class="extension">.po</filename> files; this library is
369 used when the standard applications shipped with Gettext (such as
370 <command>msgcomm</command>, <command>msgcmp</command>,
371 <command>msgattrib</command>, and <command>msgen</command>) will
372 not suffice</para>
373 <indexterm zone="ch-system-gettext libgettextpo">
374 <primary sortas="c-libgettextpo">libgettextpo</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libgettextsrc">
380 <term><filename class="libraryfile">libgettextsrc</filename></term>
381 <listitem>
382 <para>A private library containing common routines used by the
383 various Gettext programs; these are not intended for general use</para>
384 <indexterm zone="ch-system-gettext libgettextsrc">
385 <primary sortas="c-libgettextsrc">libgettextsrc</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="preloadable_libintl">
391 <term><filename class="libraryfile">preloadable_libintl</filename></term>
392 <listitem>
393 <para>A library, intended to be used by LD_PRELOAD that assists
394 <filename class="libraryfile">libintl</filename> in logging
395 untranslated messages</para>
396 <indexterm zone="ch-system-gettext preloadable_libintl">
397 <primary sortas="c-preloadable_libintl">preloadable_libintl</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401 </variablelist>
402
403 </sect2>
404
405</sect1>
Note: See TracBrowser for help on using the repository browser.