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