1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-gettext" xreflabel="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
|
---|
14 | localization. These allow programs to be compiled with Native Language Support
|
---|
15 | (NLS), enabling them to 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>Gettext installation depends on</segtitle>
|
---|
25 | <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
|
---|
26 | Diffutils, Gawk, GCC, Glibc, Grep, Make, 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
|
---|
43 | 7 SBUs.</para>
|
---|
44 |
|
---|
45 | <para>Now install the package:</para>
|
---|
46 |
|
---|
47 | <screen><userinput>make install</userinput></screen>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|
51 |
|
---|
52 | <sect2 id="contents-gettext"><title>Contents of Gettext</title>
|
---|
53 |
|
---|
54 | <para><emphasis>Installed programs</emphasis>: autopoint, config.charset,
|
---|
55 | config.rpath, envsubst, gettext, gettextize, hostname, msgattrib, msgcat,
|
---|
56 | msgcmp, msgcomm, msgconv, msgen, msgexec, msgfilter, msgfmt, msggrep, msginit,
|
---|
57 | msgmerge, msgunfmt, msguniq, ngettext, project-id, team-address, trigger,
|
---|
58 | urlget, user-email and xgettext</para>
|
---|
59 |
|
---|
60 | <para><emphasis>Installed libraries</emphasis>: libasprintf[a,so],
|
---|
61 | libgettextlib[a,so], libgettextpo[a,so] and libgettextsrc[a,so]</para>
|
---|
62 |
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | <sect2><title>Short descriptions</title>
|
---|
66 |
|
---|
67 | <indexterm zone="ch-system-gettext autopoint"><primary sortas="b-autopoint">autopoint</primary></indexterm>
|
---|
68 | <para id="autopoint"><command>autopoint</command> copies standard gettext infrastructure
|
---|
69 | files into a source package.</para>
|
---|
70 |
|
---|
71 | <indexterm zone="ch-system-gettext config.charset"><primary sortas="b-config.charset">config.charset</primary></indexterm>
|
---|
72 | <para id="config.charset"><command>config.charset</command> outputs a system-dependent table of
|
---|
73 | character encoding aliases.</para>
|
---|
74 |
|
---|
75 | <indexterm zone="ch-system-gettext config.rpath"><primary sortas="b-config.rpath">config.rpath</primary></indexterm>
|
---|
76 | <para id="config.rpath"><command>config.rpath</command> outputs a system-dependent set of
|
---|
77 | variables, describing how to set the runtime search path of shared libraries in an
|
---|
78 | executable.</para>
|
---|
79 |
|
---|
80 | <indexterm zone="ch-system-gettext envsubst"><primary sortas="b-envsubst">envsubst</primary></indexterm>
|
---|
81 | <para id="envsubst"><command>envsubst</command> substitutes environment variables in shell
|
---|
82 | format strings.</para>
|
---|
83 |
|
---|
84 | <indexterm zone="ch-system-gettext gettext"><primary sortas="b-gettext">gettext</primary></indexterm>
|
---|
85 | <para id="gettext"><command>gettext</command> translates a natural language message into
|
---|
86 | the user's language, by looking up the translation in a message catalog.</para>
|
---|
87 |
|
---|
88 | <indexterm zone="ch-system-gettext gettextize"><primary sortas="b-gettextize">gettextize</primary></indexterm>
|
---|
89 | <para id="gettextize"><command>gettextize</command> copies all standard Gettext files into
|
---|
90 | the given top-level directory of a package, to begin inter-nationalizing it.</para>
|
---|
91 |
|
---|
92 | <indexterm zone="ch-system-gettext hostname-gettext"><primary sortas="b-hostname-gettext">hostname</primary></indexterm>
|
---|
93 | <para id="hostname-gettext"><command>hostname</command> displays a network hostname in various
|
---|
94 | forms.</para>
|
---|
95 |
|
---|
96 | <indexterm zone="ch-system-gettext msgattrib"><primary sortas="b-msgattrib">msgattrib</primary></indexterm>
|
---|
97 | <para id="msgattrib"><command>msgattrib</command> filters the messages of a translation
|
---|
98 | catalog according to their attributes and manipulates the attributes.</para>
|
---|
99 |
|
---|
100 | <indexterm zone="ch-system-gettext msgcat"><primary sortas="b-msgcat">msgcat</primary></indexterm>
|
---|
101 | <para id="msgcat"><command>msgcat</command> concatenates and merges the given
|
---|
102 | <filename>.po</filename> files.</para>
|
---|
103 |
|
---|
104 | <indexterm zone="ch-system-gettext msgcmp"><primary sortas="b-msgcmp">msgcmp</primary></indexterm>
|
---|
105 | <para id="msgcmp"><command>msgcmp</command> compares two <filename>.po</filename>
|
---|
106 | files to check that both contain the same set of msgid strings.</para>
|
---|
107 |
|
---|
108 | <indexterm zone="ch-system-gettext msgcomm"><primary sortas="b-msgcomm">msgcomm</primary></indexterm>
|
---|
109 | <para id="msgcomm"><command>msgcomm</command> finds the messages that are common to
|
---|
110 | to the given <filename>.po</filename> files.</para>
|
---|
111 |
|
---|
112 | <indexterm zone="ch-system-gettext msgconv"><primary sortas="b-msgconv">msgconv</primary></indexterm>
|
---|
113 | <para id="msgconv"><command>msgconv</command> converts a translation catalog to a
|
---|
114 | different character encoding.</para>
|
---|
115 |
|
---|
116 | <indexterm zone="ch-system-gettext msgen"><primary sortas="b-msgen">msgen</primary></indexterm>
|
---|
117 | <para id="msgen"><command>msgen</command> creates an English translation catalog.</para>
|
---|
118 |
|
---|
119 | <indexterm zone="ch-system-gettext msgexec"><primary sortas="b-msgexec">msgexec</primary></indexterm>
|
---|
120 | <para id="msgexec"><command>msgexec</command> applies a command to all translations of a
|
---|
121 | translation catalog.</para>
|
---|
122 |
|
---|
123 | <indexterm zone="ch-system-gettext msgfilter"><primary sortas="b-msgfilter">msgfilter</primary></indexterm>
|
---|
124 | <para id="msgfilter"><command>msgfilter</command> applies a filter to all translations of a
|
---|
125 | translation catalog.</para>
|
---|
126 |
|
---|
127 | <indexterm zone="ch-system-gettext msgfmt"><primary sortas="b-msgfmt">msgfmt</primary></indexterm>
|
---|
128 | <para id="msgfmt"><command>msgfmt</command> generates a binary message catalog from
|
---|
129 | from a translation catalog.</para>
|
---|
130 |
|
---|
131 | <indexterm zone="ch-system-gettext msggrep"><primary sortas="b-msggrep">msggrep</primary></indexterm>
|
---|
132 | <para id="msggrep"><command>msggrep</command> extracts all messages of a translation
|
---|
133 | catalog that match a given pattern or belong to some given source files.</para>
|
---|
134 |
|
---|
135 | <indexterm zone="ch-system-gettext msginit"><primary sortas="b-msginit">msginit</primary></indexterm>
|
---|
136 | <para id="msginit"><command>msginit</command> creates a new <filename>.po</filename>
|
---|
137 | file, initializing the meta information with values from the user's
|
---|
138 | environment.</para>
|
---|
139 |
|
---|
140 | <indexterm zone="ch-system-gettext msgmerge"><primary sortas="b-msgmerge">msgmerge</primary></indexterm>
|
---|
141 | <para id="msgmerge"><command>msgmerge</command> combines two raw translations into a
|
---|
142 | single file.</para>
|
---|
143 |
|
---|
144 | <indexterm zone="ch-system-gettext msgunfmt"><primary sortas="b-msgunfmt">msgunfmt</primary></indexterm>
|
---|
145 | <para id="msgunfmt"><command>msgunfmt</command> decompiles a binary message catalog
|
---|
146 | into raw translation text.</para>
|
---|
147 |
|
---|
148 | <indexterm zone="ch-system-gettext msguniq"><primary sortas="b-msguniq">msguniq</primary></indexterm>
|
---|
149 | <para id="msguniq"><command>msguniq</command> unifies duplicate translations in a
|
---|
150 | translation catalog.</para>
|
---|
151 |
|
---|
152 | <indexterm zone="ch-system-gettext ngettext"><primary sortas="b-ngettext">ngettext</primary></indexterm>
|
---|
153 | <para id="ngettext"><command>ngettext</command> displays native language translations of a
|
---|
154 | textual message whose grammatical form depends on a number.</para>
|
---|
155 |
|
---|
156 | <indexterm zone="ch-system-gettext xgettext"><primary sortas="b-xgettext">xgettext</primary></indexterm>
|
---|
157 | <para id="xgettext"><command>xgettext</command> extracts the translatable message lines
|
---|
158 | from the given source files, to make the first translation template.</para>
|
---|
159 |
|
---|
160 | <indexterm zone="ch-system-gettext libasprintf"><primary sortas="c-libasprintf">libasprintf</primary></indexterm>
|
---|
161 | <para id="libasprintf"><command>libasprintf</command> defines the autosprintf class, which
|
---|
162 | makes C formatted output routines usable in C++ programs, for use with the
|
---|
163 | <string> strings and the <iostream> streams.</para>
|
---|
164 |
|
---|
165 | <indexterm zone="ch-system-gettext libgettextlib"><primary sortas="c-libgettextlib">libgettextlib</primary></indexterm>
|
---|
166 | <para id="libgettextlib"><command>libgettextlib</command> is a private library containing
|
---|
167 | common routines used by the various gettext programs. They're not meant for
|
---|
168 | general use.</para>
|
---|
169 |
|
---|
170 | <indexterm zone="ch-system-gettext libgettextpo"><primary sortas="c-libgettextpo">libgettextpo</primary></indexterm>
|
---|
171 | <para id="libgettextpo"><command>libgettextpo</command> is used to write specialized
|
---|
172 | programs that process PO files. This library is used when the standard
|
---|
173 | applications shipped with gettext won't suffice (such as msgcomm, msgcmp,
|
---|
174 | msgattrib and msgen).</para>
|
---|
175 |
|
---|
176 | <indexterm zone="ch-system-gettext libgettextsrc"><primary sortas="c-libgettextsrc">libgettextsrc</primary></indexterm>
|
---|
177 | <para id="libgettextsrc"><command>libgettextsrc</command> is a private library containing
|
---|
178 | common routines used by the various gettext programs. They're not meant for
|
---|
179 | general use.</para>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 |
|
---|
184 |
|
---|
185 | </sect1>
|
---|