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">
8 <sect1 id="ch-system-gettext" role="wrap">
9 <?dbhtml filename="gettext.html"?>
11 <sect1info condition="script">
12 <productname>gettext</productname>
13 <productnumber>&gettext-version;</productnumber>
14 <address>&gettext-url;</address>
17 <title>Gettext-&gettext-version;</title>
19 <indexterm zone="ch-system-gettext">
20 <primary sortas="a-Gettext">Gettext</primary>
23 <sect2 role="package">
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
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
36 <seg>&gettext-ch6-sbu;</seg>
37 <seg>&gettext-ch6-du;</seg>
43 <sect2 role="installation">
44 <title>Installation of Gettext</title>
46 <para>Prepare Gettext for compilation:</para>
48 <screen><userinput remap="configure">./configure --prefix=/usr \
50 --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
52 <para>Compile the package:</para>
54 <screen><userinput remap="make">make</userinput></screen>
56 <para>To test the results (this takes a long time, around 3 SBUs),
59 <screen><userinput remap="test">make check</userinput></screen>
61 <para>Install the package:</para>
63 <screen><userinput remap="install">make install</userinput></screen>
67 <sect2 id="contents-gettext" role="content">
68 <title>Contents of Gettext</title>
71 <segtitle>Installed programs</segtitle>
72 <segtitle>Installed libraries</segtitle>
73 <segtitle>Installed directories</segtitle>
76 <seg>autopoint, config.charset, config.rpath, envsubst, gettext, gettext.sh,
77 gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
78 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
79 ngettext, recode-sr-latin, and xgettext</seg>
80 <seg>libasprintf.{a,so}, libgettextlib.so, libgettextpo.{a,so},
81 libgettextsrc.so, and preloadable_libintl.so</seg>
82 <seg>/usr/lib/gettext, /usr/share/doc/gettext-&gettext-version;, and
83 /usr/share/gettext</seg>
88 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
89 <?dbfo list-presentation="list"?>
90 <?dbhtml list-presentation="table"?>
92 <varlistentry id="autopoint">
93 <term><command>autopoint</command></term>
95 <para>Copies standard Gettext infrastructure files into a source
97 <indexterm zone="ch-system-gettext autopoint">
98 <primary sortas="b-autopoint">autopoint</primary>
103 <varlistentry id="config.charset">
104 <term><command>config.charset</command></term>
106 <para>Outputs a system-dependent table of character encoding
108 <indexterm zone="ch-system-gettext config.charset">
109 <primary sortas="b-config.charset">config.charset</primary>
114 <varlistentry id="config.rpath">
115 <term><command>config.rpath</command></term>
117 <para>Outputs a system-dependent set of variables, describing how
118 to set the runtime search path of shared libraries in an
120 <indexterm zone="ch-system-gettext config.rpath">
121 <primary sortas="b-config.rpath">config.rpath</primary>
126 <varlistentry id="envsubst">
127 <term><command>envsubst</command></term>
129 <para>Substitutes environment variables in shell format strings</para>
130 <indexterm zone="ch-system-gettext envsubst">
131 <primary sortas="b-envsubst">envsubst</primary>
136 <varlistentry id="gettext">
137 <term><command>gettext</command></term>
139 <para>Translates a natural language message into the user's language
140 by looking up the translation in a message catalog</para>
141 <indexterm zone="ch-system-gettext gettext">
142 <primary sortas="b-gettext">gettext</primary>
147 <varlistentry id="gettext.sh">
148 <term><command>gettext.sh</command></term>
150 <para>Primarily serves as a shell function library for gettext</para>
151 <indexterm zone="ch-system-gettext gettext.sh">
152 <primary sortas="b-gettext.sh">gettext.sh</primary>
157 <varlistentry id="gettextize">
158 <term><command>gettextize</command></term>
160 <para>Copies all standard Gettext files into the given top-level
161 directory of a package to begin internationalizing it</para>
162 <indexterm zone="ch-system-gettext gettextize">
163 <primary sortas="b-gettextize">gettextize</primary>
168 <varlistentry id="hostname-gettext">
169 <term><command>hostname</command></term>
171 <para>Displays a network hostname in various forms</para>
172 <indexterm zone="ch-system-gettext hostname-gettext">
173 <primary sortas="b-hostname-gettext">hostname</primary>
178 <varlistentry id="msgattrib">
179 <term><command>msgattrib</command></term>
181 <para>Filters the messages of a translation catalog according to their
182 attributes and manipulates the attributes</para>
183 <indexterm zone="ch-system-gettext msgattrib">
184 <primary sortas="b-msgattrib">msgattrib</primary>
189 <varlistentry id="msgcat">
190 <term><command>msgcat</command></term>
192 <para>Concatenates and merges the given
193 <filename class="extension">.po</filename> files</para>
194 <indexterm zone="ch-system-gettext msgcat">
195 <primary sortas="b-msgcat">msgcat</primary>
200 <varlistentry id="msgcmp">
201 <term><command>msgcmp</command></term>
203 <para>Compares two <filename class="extension">.po</filename>
204 files to check that both contain the same set of msgid strings</para>
205 <indexterm zone="ch-system-gettext msgcmp">
206 <primary sortas="b-msgcmp">msgcmp</primary>
211 <varlistentry id="msgcomm">
212 <term><command>msgcomm</command></term>
214 <para>Finds the messages that are common to to the given
215 <filename class="extension">.po</filename> files</para>
216 <indexterm zone="ch-system-gettext msgcomm">
217 <primary sortas="b-msgcomm">msgcomm</primary>
222 <varlistentry id="msgconv">
223 <term><command>msgconv</command></term>
225 <para>Converts a translation catalog to a different character
227 <indexterm zone="ch-system-gettext msgconv">
228 <primary sortas="b-msgconv">msgconv</primary>
233 <varlistentry id="msgen">
234 <term><command>msgen</command></term>
236 <para>Creates an English translation catalog</para>
237 <indexterm zone="ch-system-gettext msgen">
238 <primary sortas="b-msgen">msgen</primary>
243 <varlistentry id="msgexec">
244 <term><command>msgexec</command></term>
246 <para>Applies a command to all translations of a translation
248 <indexterm zone="ch-system-gettext msgexec">
249 <primary sortas="b-msgexec">msgexec</primary>
254 <varlistentry id="msgfilter">
255 <term><command>msgfilter</command></term>
257 <para>Applies a filter to all translations of a translation
259 <indexterm zone="ch-system-gettext msgfilter">
260 <primary sortas="b-msgfilter">msgfilter</primary>
265 <varlistentry id="msgfmt">
266 <term><command>msgfmt</command></term>
268 <para>Generates a binary message catalog from a translation
270 <indexterm zone="ch-system-gettext msgfmt">
271 <primary sortas="b-msgfmt">msgfmt</primary>
276 <varlistentry id="msggrep">
277 <term><command>msggrep</command></term>
279 <para>Extracts all messages of a translation catalog that match a
280 given pattern or belong to some given source files</para>
281 <indexterm zone="ch-system-gettext msggrep">
282 <primary sortas="b-msggrep">msggrep</primary>
287 <varlistentry id="msginit">
288 <term><command>msginit</command></term>
290 <para>Creates a new <filename class="extension">.po</filename> file,
291 initializing the meta information with values from the user's
293 <indexterm zone="ch-system-gettext msginit">
294 <primary sortas="b-msginit">msginit</primary>
299 <varlistentry id="msgmerge">
300 <term><command>msgmerge</command></term>
302 <para>Combines two raw translations into a single file</para>
303 <indexterm zone="ch-system-gettext msgmerge">
304 <primary sortas="b-msgmerge">msgmerge</primary>
309 <varlistentry id="msgunfmt">
310 <term><command>msgunfmt</command></term>
312 <para>Decompiles a binary message catalog into raw translation
314 <indexterm zone="ch-system-gettext msgunfmt">
315 <primary sortas="b-msgunfmt">msgunfmt</primary>
320 <varlistentry id="msguniq">
321 <term><command>msguniq</command></term>
323 <para>Unifies duplicate translations in a translation catalog</para>
324 <indexterm zone="ch-system-gettext msguniq">
325 <primary sortas="b-msguniq">msguniq</primary>
330 <varlistentry id="ngettext">
331 <term><command>ngettext</command></term>
333 <para>Displays native language translations of a textual message whose
334 grammatical form depends on a number</para>
335 <indexterm zone="ch-system-gettext ngettext">
336 <primary sortas="b-ngettext">ngettext</primary>
341 <varlistentry id="recode-sr-latin">
342 <term><command>recode-sr-latin</command></term>
344 <para>Recodes Serbian text from Cyrillic to Latin script</para>
345 <indexterm zone="ch-system-gettext recode-sr-latin">
346 <primary sortas="b-recode-sr-latin">recode-sr-latin</primary>
351 <varlistentry id="xgettext">
352 <term><command>xgettext</command></term>
354 <para>Extracts the translatable message lines from the given source
355 files to make the first translation template</para>
356 <indexterm zone="ch-system-gettext xgettext">
357 <primary sortas="b-xgettext">xgettext</primary>
362 <varlistentry id="libasprintf">
363 <term><filename class="libraryfile">libasprintf</filename></term>
365 <para>defines the <emphasis>autosprintf</emphasis> class, which makes
366 C formatted output routines usable in C++ programs, for use with the
367 <emphasis><string></emphasis> strings and the
368 <emphasis><iostream></emphasis> streams</para>
369 <indexterm zone="ch-system-gettext libasprintf">
370 <primary sortas="c-libasprintf">libasprintf</primary>
375 <varlistentry id="libgettextlib">
376 <term><filename class="libraryfile">libgettextlib</filename></term>
378 <para>a private library containing common routines used by the
379 various Gettext programs; these are not intended for general use</para>
380 <indexterm zone="ch-system-gettext libgettextlib">
381 <primary sortas="c-libgettextlib">libgettextlib</primary>
386 <varlistentry id="libgettextpo">
387 <term><filename class="libraryfile">libgettextpo</filename></term>
389 <para>Used to write specialized programs that process
390 <filename class="extension">.po</filename> files; this library is
391 used when the standard applications shipped with Gettext (such as
392 <command>msgcomm</command>, <command>msgcmp</command>,
393 <command>msgattrib</command>, and <command>msgen</command>) will
395 <indexterm zone="ch-system-gettext libgettextpo">
396 <primary sortas="c-libgettextpo">libgettextpo</primary>
401 <varlistentry id="libgettextsrc">
402 <term><filename class="libraryfile">libgettextsrc</filename></term>
404 <para>A private library containing common routines used by the
405 various Gettext programs; these are not intended for general use</para>
406 <indexterm zone="ch-system-gettext libgettextsrc">
407 <primary sortas="c-libgettextsrc">libgettextsrc</primary>
412 <varlistentry id="preloadable_libintl">
413 <term><filename class="libraryfile">preloadable_libintl</filename></term>
415 <para>A library, intended to be used by LD_PRELOAD that assists
416 <filename class="libraryfile">libintl</filename> in logging
417 untranslated messages</para>
418 <indexterm zone="ch-system-gettext preloadable_libintl">
419 <primary sortas="c-preloadable_libintl">preloadable_libintl</primary>