| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-gettext" xreflabel="Gettext" role="wrap"><title>Gettext-&gettext-version;</title><?dbhtml filename="gettext.html"?><indexterm zone="ch-system-gettext"><primary sortas="a-Gettext">Gettext</primary></indexterm><sect2 role="package"><title/><para>The Gettext package contains utilities for internationalization andlocalization. These allow programs to be compiled with Native Language Support(NLS), enabling them to output messages in the user's native language.</para><segmentedlist><segtitle>&buildtime;</segtitle><segtitle>&diskspace;</segtitle><seglistitem><seg>0.5 SBU</seg><seg>55 MB</seg></seglistitem></segmentedlist><segmentedlist><segtitle>Gettext installation depends on</segtitle><seglistitem><seg>Bash, Binutils, Bison, Coreutils,Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem></segmentedlist></sect2><sect2 role="installation"><title>Installation of Gettext</title><para>Prepare Gettext for compilation:</para><screen><userinput>./configure --prefix=/usr</userinput></screen><para>Compile the package:</para><screen><userinput>make</userinput></screen><para>To test the results, issue:<userinput>make check</userinput>. This takes a very long time, around7 SBUs.</para><para>Now install the package:</para><screen><userinput>make install</userinput></screen></sect2><sect2 id="contents-gettext" role="content"><title>Contents of Gettext</title><segmentedlist><segtitle>Installed programs</segtitle><segtitle>Installed libraries</segtitle><seglistitem><seg>autopoint, config.charset, config.rpath, envsubst, gettext, gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen, msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq, ngettext, project-id, team-address, trigger, urlget, user-email and xgettext</seg><seg>libasprintf[a,so], libgettextlib[a,so], libgettextpo[a,so] and libgettextsrc[a,so]</seg></seglistitem></segmentedlist><variablelist><title>Short descriptions</title><varlistentry id="autopoint"><term><command>autopoint</command></term><listitem><indexterm zone="ch-system-gettext autopoint"><primary sortas="b-autopoint">autopoint</primary></indexterm><para>copies standard gettext infrastructure files into a source package.</para></listitem></varlistentry><varlistentry id="config.charset"><term><command>config.charset</command></term><listitem><indexterm zone="ch-system-gettext config.charset"><primary sortas="b-config.charset">config.charset</primary></indexterm><para>outputs a system-dependent table of character encoding aliases.</para></listitem></varlistentry><varlistentry id="config.rpath"><term><command>config.rpath</command></term><listitem><indexterm zone="ch-system-gettext config.rpath"><primary sortas="b-config.rpath">config.rpath</primary></indexterm><para>outputs a system-dependent set of variables, describing how to set the runtime search path of shared libraries in an executable.</para></listitem></varlistentry><varlistentry id="envsubst"><term><command>envsubst</command></term><listitem><indexterm zone="ch-system-gettext envsubst"><primary sortas="b-envsubst">envsubst</primary></indexterm><para>substitutes environment variables in shell format strings.</para></listitem></varlistentry><varlistentry id="gettext"><term><command>gettext</command></term><listitem><indexterm zone="ch-system-gettext gettext"><primary sortas="b-gettext">gettext</primary></indexterm><para>translates a natural language message intothe user's language, by looking up the translation in a message catalog.</para></listitem></varlistentry><varlistentry id="gettextize"><term><command>gettextize</command></term><listitem><indexterm zone="ch-system-gettext gettextize"><primary sortas="b-gettextize">gettextize</primary></indexterm><para>copies all standard Gettext files intothe given top-level directory of a package, to begin inter-nationalizing it.</para></listitem></varlistentry><varlistentry id="hostname-gettext"><term><command>hostname</command></term><listitem><indexterm zone="ch-system-gettext hostname-gettext"><primary sortas="b-hostname-gettext">hostname</primary></indexterm><para>displays a network hostname in various forms.</para></listitem></varlistentry><varlistentry id="msgattrib"><term><command>msgattrib</command></term><listitem><indexterm zone="ch-system-gettext msgattrib"><primary sortas="b-msgattrib">msgattrib</primary></indexterm><para>filters the messages of a translationcatalog according to their attributes and manipulates the attributes.</para></listitem></varlistentry><varlistentry id="msgcat"><term><command>msgcat</command></term><listitem><indexterm zone="ch-system-gettext msgcat"><primary sortas="b-msgcat">msgcat</primary></indexterm><para>concatenates and merges the given <filename>.po</filename> files.</para></listitem></varlistentry><varlistentry id="msgcmp"><term><command>msgcmp</command></term><listitem><indexterm zone="ch-system-gettext msgcmp"><primary sortas="b-msgcmp">msgcmp</primary></indexterm><para>compares two <filename>.po</filename>files to check that both contain the same set of msgid strings.</para></listitem></varlistentry><varlistentry id="msgcomm"><term><command>msgcomm</command></term><listitem><indexterm zone="ch-system-gettext msgcomm"><primary sortas="b-msgcomm">msgcomm</primary></indexterm><para>finds the messages that are common toto the given <filename>.po</filename> files.</para></listitem></varlistentry><varlistentry id="msgconv"><term><command>msgconv</command></term><listitem><indexterm zone="ch-system-gettext msgconv"><primary sortas="b-msgconv">msgconv</primary></indexterm><para>converts a translation catalog to a different character encoding.</para></listitem></varlistentry><varlistentry id="msgen"><term><command>msgen</command></term><listitem><indexterm zone="ch-system-gettext msgen"><primary sortas="b-msgen">msgen</primary></indexterm><para>creates an English translation catalog.</para></listitem></varlistentry><varlistentry id="msgexec"><term><command>msgexec</command></term><listitem><indexterm zone="ch-system-gettext msgexec"><primary sortas="b-msgexec">msgexec</primary></indexterm><para>applies a command to all translations of a translation catalog.</para></listitem></varlistentry><varlistentry id="msgfilter"><term><command>msgfilter</command></term><listitem><indexterm zone="ch-system-gettext msgfilter"><primary sortas="b-msgfilter">msgfilter</primary></indexterm><para>applies a filter to all translations of a translation catalog.</para></listitem></varlistentry><varlistentry id="msgfmt"><term><command>msgfmt</command></term><listitem><indexterm zone="ch-system-gettext msgfmt"><primary sortas="b-msgfmt">msgfmt</primary></indexterm><para>generates a binary message catalog from from a translation catalog.</para></listitem></varlistentry><varlistentry id="msggrep"><term><command>msggrep</command></term><listitem><indexterm zone="ch-system-gettext msggrep"><primary sortas="b-msggrep">msggrep</primary></indexterm><para>extracts all messages of a translationcatalog that match a given pattern or belong to some given source files.</para></listitem></varlistentry><varlistentry id="msginit"><term><command>msginit</command></term><listitem><indexterm zone="ch-system-gettext msginit"><primary sortas="b-msginit">msginit</primary></indexterm><para>creates a new <filename>.po</filename> file, initializing the meta information with values from the user's environment.</para></listitem></varlistentry><varlistentry id="msgmerge"><term><command>msgmerge</command></term><listitem><indexterm zone="ch-system-gettext msgmerge"><primary sortas="b-msgmerge">msgmerge</primary></indexterm><para>combines two raw translations into a single file.</para></listitem></varlistentry><varlistentry id="msgunfmt"><term><command>msgunfmt</command></term><listitem><indexterm zone="ch-system-gettext msgunfmt"><primary sortas="b-msgunfmt">msgunfmt</primary></indexterm><para>decompiles a binary message catalog into raw translation text.</para></listitem></varlistentry><varlistentry id="msguniq"><term><command>msguniq</command></term><listitem><indexterm zone="ch-system-gettext msguniq"><primary sortas="b-msguniq">msguniq</primary></indexterm><para>unifies duplicate translations in a translation catalog.</para></listitem></varlistentry><varlistentry id="ngettext"><term><command>ngettext</command></term><listitem><indexterm zone="ch-system-gettext ngettext"><primary sortas="b-ngettext">ngettext</primary></indexterm><para>displays native language translations of atextual message whose grammatical form depends on a number.</para></listitem></varlistentry><varlistentry id="xgettext"><term><command>xgettext</command></term><listitem><indexterm zone="ch-system-gettext xgettext"><primary sortas="b-xgettext">xgettext</primary></indexterm><para>extracts the translatable message linesfrom the given source files, to make the first translation template.</para></listitem></varlistentry><varlistentry id="libasprintf"><term><command>libasprintf</command></term><listitem><indexterm zone="ch-system-gettext libasprintf"><primary sortas="c-libasprintf">libasprintf</primary></indexterm><para>defines the autosprintf class, whichmakes C formatted output routines usable in C++ programs, for use with the<string> strings and the <iostream> streams.</para></listitem></varlistentry><varlistentry id="libgettextlib"><term><command>libgettextlib</command></term><listitem><indexterm zone="ch-system-gettext libgettextlib"><primary sortas="c-libgettextlib">libgettextlib</primary></indexterm><para>is a private library containing common routines used by the various gettext programs. They're not meant for general use.</para></listitem></varlistentry><varlistentry id="libgettextpo"><term><command>libgettextpo</command></term><listitem><indexterm zone="ch-system-gettext libgettextpo"><primary sortas="c-libgettextpo">libgettextpo</primary></indexterm><para>is used to write specialized programs that process PO files. This library is used when the standard applications shipped with gettext won't suffice (such as msgcomm, msgcmp, msgattrib and msgen).</para></listitem></varlistentry><varlistentry id="libgettextsrc"><term><command>libgettextsrc</command></term><listitem><indexterm zone="ch-system-gettext libgettextsrc"><primary sortas="c-libgettextsrc">libgettextsrc</primary></indexterm><para>is a private library containing common routines used by the various gettext programs. They're not meant for general use.</para></listitem></varlistentry></variablelist></sect2></sect1>
 |