gettext.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <indexterm zone="ch-system-gettext"><primary sortas="a-Gettext">Gettext</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Gettext package contains utilities for internationalization and
  12. localization. These allow programs to be compiled with Native Language Support
  13. (NLS), enabling them to output messages in the user's native language.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.5 SBU</seg><seg>55 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>Gettext installation depends on</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
  22. Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Gettext</title>
  27. <para>Prepare Gettext for compilation:</para>
  28. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  29. <para>Compile the package:</para>
  30. <screen><userinput>make</userinput></screen>
  31. <para>To test the results, issue:
  32. <userinput>make check</userinput>. This takes a very long time, around
  33. 7 SBUs.</para>
  34. <para>Now install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. </sect2>
  37. <sect2 id="contents-gettext"><title>Contents of Gettext</title>
  38. <para><emphasis>Installed programs</emphasis>: autopoint, config.charset,
  39. config.rpath, envsubst, gettext, gettextize, hostname, msgattrib, msgcat,
  40. msgcmp, msgcomm, msgconv, msgen, msgexec, msgfilter, msgfmt, msggrep, msginit,
  41. msgmerge, msgunfmt, msguniq, ngettext, project-id, team-address, trigger,
  42. urlget, user-email and xgettext</para>
  43. <para><emphasis>Installed libraries</emphasis>: libasprintf[a,so],
  44. libgettextlib[a,so], libgettextpo[a,so] and libgettextsrc[a,so]</para>
  45. </sect2>
  46. <sect2><title>Short descriptions</title>
  47. <indexterm zone="ch-system-gettext autopoint"><primary sortas="b-autopoint">autopoint</primary></indexterm>
  48. <para id="autopoint"><command>autopoint</command> copies standard gettext infrastructure
  49. files into a source package.</para>
  50. <indexterm zone="ch-system-gettext config.charset"><primary sortas="b-config.charset">config.charset</primary></indexterm>
  51. <para id="config.charset"><command>config.charset</command> outputs a system-dependent table of
  52. character encoding aliases.</para>
  53. <indexterm zone="ch-system-gettext config.rpath"><primary sortas="b-config.rpath">config.rpath</primary></indexterm>
  54. <para id="config.rpath"><command>config.rpath</command> outputs a system-dependent set of
  55. variables, describing how to set the runtime search path of shared libraries in an
  56. executable.</para>
  57. <indexterm zone="ch-system-gettext envsubst"><primary sortas="b-envsubst">envsubst</primary></indexterm>
  58. <para id="envsubst"><command>envsubst</command> substitutes environment variables in shell
  59. format strings.</para>
  60. <indexterm zone="ch-system-gettext gettext"><primary sortas="b-gettext">gettext</primary></indexterm>
  61. <para id="gettext"><command>gettext</command> translates a natural language message into
  62. the user's language, by looking up the translation in a message catalog.</para>
  63. <indexterm zone="ch-system-gettext gettextize"><primary sortas="b-gettextize">gettextize</primary></indexterm>
  64. <para id="gettextize"><command>gettextize</command> copies all standard Gettext files into
  65. the given top-level directory of a package, to begin inter-nationalizing it.</para>
  66. <indexterm zone="ch-system-gettext hostname-gettext"><primary sortas="b-hostname-gettext">hostname</primary></indexterm>
  67. <para id="hostname-gettext"><command>hostname</command> displays a network hostname in various
  68. forms.</para>
  69. <indexterm zone="ch-system-gettext msgattrib"><primary sortas="b-msgattrib">msgattrib</primary></indexterm>
  70. <para id="msgattrib"><command>msgattrib</command> filters the messages of a translation
  71. catalog according to their attributes and manipulates the attributes.</para>
  72. <indexterm zone="ch-system-gettext msgcat"><primary sortas="b-msgcat">msgcat</primary></indexterm>
  73. <para id="msgcat"><command>msgcat</command> concatenates and merges the given
  74. <filename>.po</filename> files.</para>
  75. <indexterm zone="ch-system-gettext msgcmp"><primary sortas="b-msgcmp">msgcmp</primary></indexterm>
  76. <para id="msgcmp"><command>msgcmp</command> compares two <filename>.po</filename>
  77. files to check that both contain the same set of msgid strings.</para>
  78. <indexterm zone="ch-system-gettext msgcomm"><primary sortas="b-msgcomm">msgcomm</primary></indexterm>
  79. <para id="msgcomm"><command>msgcomm</command> finds the messages that are common to
  80. to the given <filename>.po</filename> files.</para>
  81. <indexterm zone="ch-system-gettext msgconv"><primary sortas="b-msgconv">msgconv</primary></indexterm>
  82. <para id="msgconv"><command>msgconv</command> converts a translation catalog to a
  83. different character encoding.</para>
  84. <indexterm zone="ch-system-gettext msgen"><primary sortas="b-msgen">msgen</primary></indexterm>
  85. <para id="msgen"><command>msgen</command> creates an English translation catalog.</para>
  86. <indexterm zone="ch-system-gettext msgexec"><primary sortas="b-msgexec">msgexec</primary></indexterm>
  87. <para id="msgexec"><command>msgexec</command> applies a command to all translations of a
  88. translation catalog.</para>
  89. <indexterm zone="ch-system-gettext msgfilter"><primary sortas="b-msgfilter">msgfilter</primary></indexterm>
  90. <para id="msgfilter"><command>msgfilter</command> applies a filter to all translations of a
  91. translation catalog.</para>
  92. <indexterm zone="ch-system-gettext msgfmt"><primary sortas="b-msgfmt">msgfmt</primary></indexterm>
  93. <para id="msgfmt"><command>msgfmt</command> generates a binary message catalog from
  94. from a translation catalog.</para>
  95. <indexterm zone="ch-system-gettext msggrep"><primary sortas="b-msggrep">msggrep</primary></indexterm>
  96. <para id="msggrep"><command>msggrep</command> extracts all messages of a translation
  97. catalog that match a given pattern or belong to some given source files.</para>
  98. <indexterm zone="ch-system-gettext msginit"><primary sortas="b-msginit">msginit</primary></indexterm>
  99. <para id="msginit"><command>msginit</command> creates a new <filename>.po</filename>
  100. file, initializing the meta information with values from the user's
  101. environment.</para>
  102. <indexterm zone="ch-system-gettext msgmerge"><primary sortas="b-msgmerge">msgmerge</primary></indexterm>
  103. <para id="msgmerge"><command>msgmerge</command> combines two raw translations into a
  104. single file.</para>
  105. <indexterm zone="ch-system-gettext msgunfmt"><primary sortas="b-msgunfmt">msgunfmt</primary></indexterm>
  106. <para id="msgunfmt"><command>msgunfmt</command> decompiles a binary message catalog
  107. into raw translation text.</para>
  108. <indexterm zone="ch-system-gettext msguniq"><primary sortas="b-msguniq">msguniq</primary></indexterm>
  109. <para id="msguniq"><command>msguniq</command> unifies duplicate translations in a
  110. translation catalog.</para>
  111. <indexterm zone="ch-system-gettext ngettext"><primary sortas="b-ngettext">ngettext</primary></indexterm>
  112. <para id="ngettext"><command>ngettext</command> displays native language translations of a
  113. textual message whose grammatical form depends on a number.</para>
  114. <indexterm zone="ch-system-gettext xgettext"><primary sortas="b-xgettext">xgettext</primary></indexterm>
  115. <para id="xgettext"><command>xgettext</command> extracts the translatable message lines
  116. from the given source files, to make the first translation template.</para>
  117. <indexterm zone="ch-system-gettext libasprintf"><primary sortas="c-libasprintf">libasprintf</primary></indexterm>
  118. <para id="libasprintf"><command>libasprintf</command> defines the autosprintf class, which
  119. makes C formatted output routines usable in C++ programs, for use with the
  120. &lt;string&gt; strings and the &lt;iostream&gt; streams.</para>
  121. <indexterm zone="ch-system-gettext libgettextlib"><primary sortas="c-libgettextlib">libgettextlib</primary></indexterm>
  122. <para id="libgettextlib"><command>libgettextlib</command> is a private library containing
  123. common routines used by the various gettext programs. They're not meant for
  124. general use.</para>
  125. <indexterm zone="ch-system-gettext libgettextpo"><primary sortas="c-libgettextpo">libgettextpo</primary></indexterm>
  126. <para id="libgettextpo"><command>libgettextpo</command> is used to write specialized
  127. programs that process PO files. This library is used when the standard
  128. applications shipped with gettext won't suffice (such as msgcomm, msgcmp,
  129. msgattrib and msgen).</para>
  130. <indexterm zone="ch-system-gettext libgettextsrc"><primary sortas="c-libgettextsrc">libgettextsrc</primary></indexterm>
  131. <para id="libgettextsrc"><command>libgettextsrc</command> is a private library containing
  132. common routines used by the various gettext programs. They're not meant for
  133. general use.</para>
  134. </sect2>
  135. </sect1>