gettext.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-gettext" role="wrap">
  8. <?dbhtml filename="gettext.html"?>
  9. <sect1info condition="script">
  10. <productname>gettext</productname>
  11. <productnumber>&gettext-version;</productnumber>
  12. <address>&gettext-url;</address>
  13. </sect1info>
  14. <title>Gettext-&gettext-version;</title>
  15. <indexterm zone="ch-system-gettext">
  16. <primary sortas="a-Gettext">Gettext</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Gettext package contains utilities for internationalization and
  21. localization. These allow programs to be compiled with NLS (Native Language
  22. Support), enabling them to output messages in the user's native
  23. language.</para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&gettext-ch6-sbu;</seg>
  29. <seg>&gettext-ch6-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Gettext</title>
  35. <para>Prepare Gettext for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr \
  37. --disable-static \
  38. --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>To test the results (this takes a long time, around 3 SBUs),
  42. issue:</para>
  43. <screen><userinput remap="test">make check</userinput></screen>
  44. <para>Install the package:</para>
  45. <screen><userinput remap="install">make install
  46. chmod -v 0755 /usr/lib/preloadable_libintl.so</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-gettext" role="content">
  49. <title>Contents of Gettext</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <segtitle>Installed libraries</segtitle>
  53. <segtitle>Installed directories</segtitle>
  54. <seglistitem>
  55. <seg>autopoint, envsubst, gettext, gettext.sh,
  56. gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen,
  57. msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
  58. ngettext, recode-sr-latin, and xgettext</seg>
  59. <seg>libasprintf.so, libgettextlib.so, libgettextpo.so,
  60. libgettextsrc.so, and preloadable_libintl.so</seg>
  61. <seg>/usr/lib/gettext, /usr/share/doc/gettext-&gettext-version;, and
  62. /usr/share/gettext</seg>
  63. </seglistitem>
  64. </segmentedlist>
  65. <variablelist>
  66. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  67. <?dbfo list-presentation="list"?>
  68. <?dbhtml list-presentation="table"?>
  69. <varlistentry id="autopoint">
  70. <term><command>autopoint</command></term>
  71. <listitem>
  72. <para>Copies standard Gettext infrastructure files into a source
  73. package</para>
  74. <indexterm zone="ch-system-gettext autopoint">
  75. <primary sortas="b-autopoint">autopoint</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="envsubst">
  80. <term><command>envsubst</command></term>
  81. <listitem>
  82. <para>Substitutes environment variables in shell format strings</para>
  83. <indexterm zone="ch-system-gettext envsubst">
  84. <primary sortas="b-envsubst">envsubst</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="gettext">
  89. <term><command>gettext</command></term>
  90. <listitem>
  91. <para>Translates a natural language message into the user's language
  92. by looking up the translation in a message catalog</para>
  93. <indexterm zone="ch-system-gettext gettext">
  94. <primary sortas="b-gettext">gettext</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="gettext.sh">
  99. <term><command>gettext.sh</command></term>
  100. <listitem>
  101. <para>Primarily serves as a shell function library for gettext</para>
  102. <indexterm zone="ch-system-gettext gettext.sh">
  103. <primary sortas="b-gettext.sh">gettext.sh</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="gettextize">
  108. <term><command>gettextize</command></term>
  109. <listitem>
  110. <para>Copies all standard Gettext files into the given top-level
  111. directory of a package to begin internationalizing it</para>
  112. <indexterm zone="ch-system-gettext gettextize">
  113. <primary sortas="b-gettextize">gettextize</primary>
  114. </indexterm>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry id="hostname-gettext">
  118. <term><command>hostname</command></term>
  119. <listitem>
  120. <para>Displays a network hostname in various forms</para>
  121. <indexterm zone="ch-system-gettext hostname-gettext">
  122. <primary sortas="b-hostname-gettext">hostname</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="msgattrib">
  127. <term><command>msgattrib</command></term>
  128. <listitem>
  129. <para>Filters the messages of a translation catalog according to their
  130. attributes and manipulates the attributes</para>
  131. <indexterm zone="ch-system-gettext msgattrib">
  132. <primary sortas="b-msgattrib">msgattrib</primary>
  133. </indexterm>
  134. </listitem>
  135. </varlistentry>
  136. <varlistentry id="msgcat">
  137. <term><command>msgcat</command></term>
  138. <listitem>
  139. <para>Concatenates and merges the given
  140. <filename class="extension">.po</filename> files</para>
  141. <indexterm zone="ch-system-gettext msgcat">
  142. <primary sortas="b-msgcat">msgcat</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="msgcmp">
  147. <term><command>msgcmp</command></term>
  148. <listitem>
  149. <para>Compares two <filename class="extension">.po</filename>
  150. files to check that both contain the same set of msgid strings</para>
  151. <indexterm zone="ch-system-gettext msgcmp">
  152. <primary sortas="b-msgcmp">msgcmp</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. <varlistentry id="msgcomm">
  157. <term><command>msgcomm</command></term>
  158. <listitem>
  159. <para>Finds the messages that are common to to the given
  160. <filename class="extension">.po</filename> files</para>
  161. <indexterm zone="ch-system-gettext msgcomm">
  162. <primary sortas="b-msgcomm">msgcomm</primary>
  163. </indexterm>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry id="msgconv">
  167. <term><command>msgconv</command></term>
  168. <listitem>
  169. <para>Converts a translation catalog to a different character
  170. encoding</para>
  171. <indexterm zone="ch-system-gettext msgconv">
  172. <primary sortas="b-msgconv">msgconv</primary>
  173. </indexterm>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="msgen">
  177. <term><command>msgen</command></term>
  178. <listitem>
  179. <para>Creates an English translation catalog</para>
  180. <indexterm zone="ch-system-gettext msgen">
  181. <primary sortas="b-msgen">msgen</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="msgexec">
  186. <term><command>msgexec</command></term>
  187. <listitem>
  188. <para>Applies a command to all translations of a translation
  189. catalog</para>
  190. <indexterm zone="ch-system-gettext msgexec">
  191. <primary sortas="b-msgexec">msgexec</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="msgfilter">
  196. <term><command>msgfilter</command></term>
  197. <listitem>
  198. <para>Applies a filter to all translations of a translation
  199. catalog</para>
  200. <indexterm zone="ch-system-gettext msgfilter">
  201. <primary sortas="b-msgfilter">msgfilter</primary>
  202. </indexterm>
  203. </listitem>
  204. </varlistentry>
  205. <varlistentry id="msgfmt">
  206. <term><command>msgfmt</command></term>
  207. <listitem>
  208. <para>Generates a binary message catalog from a translation
  209. catalog</para>
  210. <indexterm zone="ch-system-gettext msgfmt">
  211. <primary sortas="b-msgfmt">msgfmt</primary>
  212. </indexterm>
  213. </listitem>
  214. </varlistentry>
  215. <varlistentry id="msggrep">
  216. <term><command>msggrep</command></term>
  217. <listitem>
  218. <para>Extracts all messages of a translation catalog that match a
  219. given pattern or belong to some given source files</para>
  220. <indexterm zone="ch-system-gettext msggrep">
  221. <primary sortas="b-msggrep">msggrep</primary>
  222. </indexterm>
  223. </listitem>
  224. </varlistentry>
  225. <varlistentry id="msginit">
  226. <term><command>msginit</command></term>
  227. <listitem>
  228. <para>Creates a new <filename class="extension">.po</filename> file,
  229. initializing the meta information with values from the user's
  230. environment</para>
  231. <indexterm zone="ch-system-gettext msginit">
  232. <primary sortas="b-msginit">msginit</primary>
  233. </indexterm>
  234. </listitem>
  235. </varlistentry>
  236. <varlistentry id="msgmerge">
  237. <term><command>msgmerge</command></term>
  238. <listitem>
  239. <para>Combines two raw translations into a single file</para>
  240. <indexterm zone="ch-system-gettext msgmerge">
  241. <primary sortas="b-msgmerge">msgmerge</primary>
  242. </indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="msgunfmt">
  246. <term><command>msgunfmt</command></term>
  247. <listitem>
  248. <para>Decompiles a binary message catalog into raw translation
  249. text</para>
  250. <indexterm zone="ch-system-gettext msgunfmt">
  251. <primary sortas="b-msgunfmt">msgunfmt</primary>
  252. </indexterm>
  253. </listitem>
  254. </varlistentry>
  255. <varlistentry id="msguniq">
  256. <term><command>msguniq</command></term>
  257. <listitem>
  258. <para>Unifies duplicate translations in a translation catalog</para>
  259. <indexterm zone="ch-system-gettext msguniq">
  260. <primary sortas="b-msguniq">msguniq</primary>
  261. </indexterm>
  262. </listitem>
  263. </varlistentry>
  264. <varlistentry id="ngettext">
  265. <term><command>ngettext</command></term>
  266. <listitem>
  267. <para>Displays native language translations of a textual message whose
  268. grammatical form depends on a number</para>
  269. <indexterm zone="ch-system-gettext ngettext">
  270. <primary sortas="b-ngettext">ngettext</primary>
  271. </indexterm>
  272. </listitem>
  273. </varlistentry>
  274. <varlistentry id="recode-sr-latin">
  275. <term><command>recode-sr-latin</command></term>
  276. <listitem>
  277. <para>Recodes Serbian text from Cyrillic to Latin script</para>
  278. <indexterm zone="ch-system-gettext recode-sr-latin">
  279. <primary sortas="b-recode-sr-latin">recode-sr-latin</primary>
  280. </indexterm>
  281. </listitem>
  282. </varlistentry>
  283. <varlistentry id="xgettext">
  284. <term><command>xgettext</command></term>
  285. <listitem>
  286. <para>Extracts the translatable message lines from the given source
  287. files to make the first translation template</para>
  288. <indexterm zone="ch-system-gettext xgettext">
  289. <primary sortas="b-xgettext">xgettext</primary>
  290. </indexterm>
  291. </listitem>
  292. </varlistentry>
  293. <varlistentry id="libasprintf">
  294. <term><filename class="libraryfile">libasprintf</filename></term>
  295. <listitem>
  296. <para>defines the <emphasis>autosprintf</emphasis> class, which makes
  297. C formatted output routines usable in C++ programs, for use with the
  298. <emphasis>&lt;string&gt;</emphasis> strings and the
  299. <emphasis>&lt;iostream&gt;</emphasis> streams</para>
  300. <indexterm zone="ch-system-gettext libasprintf">
  301. <primary sortas="c-libasprintf">libasprintf</primary>
  302. </indexterm>
  303. </listitem>
  304. </varlistentry>
  305. <varlistentry id="libgettextlib">
  306. <term><filename class="libraryfile">libgettextlib</filename></term>
  307. <listitem>
  308. <para>a private library containing common routines used by the
  309. various Gettext programs; these are not intended for general use</para>
  310. <indexterm zone="ch-system-gettext libgettextlib">
  311. <primary sortas="c-libgettextlib">libgettextlib</primary>
  312. </indexterm>
  313. </listitem>
  314. </varlistentry>
  315. <varlistentry id="libgettextpo">
  316. <term><filename class="libraryfile">libgettextpo</filename></term>
  317. <listitem>
  318. <para>Used to write specialized programs that process
  319. <filename class="extension">.po</filename> files; this library is
  320. used when the standard applications shipped with Gettext (such as
  321. <command>msgcomm</command>, <command>msgcmp</command>,
  322. <command>msgattrib</command>, and <command>msgen</command>) will
  323. not suffice</para>
  324. <indexterm zone="ch-system-gettext libgettextpo">
  325. <primary sortas="c-libgettextpo">libgettextpo</primary>
  326. </indexterm>
  327. </listitem>
  328. </varlistentry>
  329. <varlistentry id="libgettextsrc">
  330. <term><filename class="libraryfile">libgettextsrc</filename></term>
  331. <listitem>
  332. <para>A private library containing common routines used by the
  333. various Gettext programs; these are not intended for general use</para>
  334. <indexterm zone="ch-system-gettext libgettextsrc">
  335. <primary sortas="c-libgettextsrc">libgettextsrc</primary>
  336. </indexterm>
  337. </listitem>
  338. </varlistentry>
  339. <varlistentry id="preloadable_libintl">
  340. <term><filename class="libraryfile">preloadable_libintl</filename></term>
  341. <listitem>
  342. <para>A library, intended to be used by LD_PRELOAD that assists
  343. <filename class="libraryfile">libintl</filename> in logging
  344. untranslated messages</para>
  345. <indexterm zone="ch-system-gettext preloadable_libintl">
  346. <primary sortas="c-preloadable_libintl">preloadable_libintl</primary>
  347. </indexterm>
  348. </listitem>
  349. </varlistentry>
  350. </variablelist>
  351. </sect2>
  352. </sect1>