gettext.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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>Fix an incompatibility between this package and Glibc-&glibc-version;:</para>
  36. <screen><userinput remap="pre">sed -i -e '/gets is a/d' gettext-*/*/stdio.in.h</userinput></screen>
  37. <para>Prepare Gettext for compilation:</para>
  38. <screen><userinput remap="configure">./configure --prefix=/usr \
  39. --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
  40. <para>Compile the package:</para>
  41. <screen><userinput remap="make">make</userinput></screen>
  42. <para>To test the results (this takes a long time, around 3 SBUs),
  43. issue:</para>
  44. <screen><userinput remap="test">make check</userinput></screen>
  45. <para>Install the package:</para>
  46. <screen><userinput remap="install">make install</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, config.charset, config.rpath, 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.{a,so}, libgettextlib.so, libgettextpo.{a,so},
  60. libgettextsrc.so, and preloadable_libintl.so</seg>
  61. <seg>/usr/lib/gettext, /usr/share/doc/gettext-&gettext-version;,
  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="config.charset">
  80. <term><command>config.charset</command></term>
  81. <listitem>
  82. <para>Outputs a system-dependent table of character encoding
  83. aliases</para>
  84. <indexterm zone="ch-system-gettext config.charset">
  85. <primary sortas="b-config.charset">config.charset</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="config.rpath">
  90. <term><command>config.rpath</command></term>
  91. <listitem>
  92. <para>Outputs a system-dependent set of variables, describing how
  93. to set the runtime search path of shared libraries in an
  94. executable</para>
  95. <indexterm zone="ch-system-gettext config.rpath">
  96. <primary sortas="b-config.rpath">config.rpath</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="envsubst">
  101. <term><command>envsubst</command></term>
  102. <listitem>
  103. <para>Substitutes environment variables in shell format strings</para>
  104. <indexterm zone="ch-system-gettext envsubst">
  105. <primary sortas="b-envsubst">envsubst</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="gettext">
  110. <term><command>gettext</command></term>
  111. <listitem>
  112. <para>Translates a natural language message into the user's language
  113. by looking up the translation in a message catalog</para>
  114. <indexterm zone="ch-system-gettext gettext">
  115. <primary sortas="b-gettext">gettext</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="gettext.sh">
  120. <term><command>gettext.sh</command></term>
  121. <listitem>
  122. <para>Primarily serves as a shell function library for gettext</para>
  123. <indexterm zone="ch-system-gettext gettext.sh">
  124. <primary sortas="b-gettext.sh">gettext.sh</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="gettextize">
  129. <term><command>gettextize</command></term>
  130. <listitem>
  131. <para>Copies all standard Gettext files into the given top-level
  132. directory of a package to begin internationalizing it</para>
  133. <indexterm zone="ch-system-gettext gettextize">
  134. <primary sortas="b-gettextize">gettextize</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="hostname-gettext">
  139. <term><command>hostname</command></term>
  140. <listitem>
  141. <para>Displays a network hostname in various forms</para>
  142. <indexterm zone="ch-system-gettext hostname-gettext">
  143. <primary sortas="b-hostname-gettext">hostname</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="msgattrib">
  148. <term><command>msgattrib</command></term>
  149. <listitem>
  150. <para>Filters the messages of a translation catalog according to their
  151. attributes and manipulates the attributes</para>
  152. <indexterm zone="ch-system-gettext msgattrib">
  153. <primary sortas="b-msgattrib">msgattrib</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="msgcat">
  158. <term><command>msgcat</command></term>
  159. <listitem>
  160. <para>Concatenates and merges the given
  161. <filename class="extension">.po</filename> files</para>
  162. <indexterm zone="ch-system-gettext msgcat">
  163. <primary sortas="b-msgcat">msgcat</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="msgcmp">
  168. <term><command>msgcmp</command></term>
  169. <listitem>
  170. <para>Compares two <filename class="extension">.po</filename>
  171. files to check that both contain the same set of msgid strings</para>
  172. <indexterm zone="ch-system-gettext msgcmp">
  173. <primary sortas="b-msgcmp">msgcmp</primary>
  174. </indexterm>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry id="msgcomm">
  178. <term><command>msgcomm</command></term>
  179. <listitem>
  180. <para>Finds the messages that are common to to the given
  181. <filename class="extension">.po</filename> files</para>
  182. <indexterm zone="ch-system-gettext msgcomm">
  183. <primary sortas="b-msgcomm">msgcomm</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="msgconv">
  188. <term><command>msgconv</command></term>
  189. <listitem>
  190. <para>Converts a translation catalog to a different character
  191. encoding</para>
  192. <indexterm zone="ch-system-gettext msgconv">
  193. <primary sortas="b-msgconv">msgconv</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. <varlistentry id="msgen">
  198. <term><command>msgen</command></term>
  199. <listitem>
  200. <para>Creates an English translation catalog</para>
  201. <indexterm zone="ch-system-gettext msgen">
  202. <primary sortas="b-msgen">msgen</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="msgexec">
  207. <term><command>msgexec</command></term>
  208. <listitem>
  209. <para>Applies a command to all translations of a translation
  210. catalog</para>
  211. <indexterm zone="ch-system-gettext msgexec">
  212. <primary sortas="b-msgexec">msgexec</primary>
  213. </indexterm>
  214. </listitem>
  215. </varlistentry>
  216. <varlistentry id="msgfilter">
  217. <term><command>msgfilter</command></term>
  218. <listitem>
  219. <para>Applies a filter to all translations of a translation
  220. catalog</para>
  221. <indexterm zone="ch-system-gettext msgfilter">
  222. <primary sortas="b-msgfilter">msgfilter</primary>
  223. </indexterm>
  224. </listitem>
  225. </varlistentry>
  226. <varlistentry id="msgfmt">
  227. <term><command>msgfmt</command></term>
  228. <listitem>
  229. <para>Generates a binary message catalog from a translation
  230. catalog</para>
  231. <indexterm zone="ch-system-gettext msgfmt">
  232. <primary sortas="b-msgfmt">msgfmt</primary>
  233. </indexterm>
  234. </listitem>
  235. </varlistentry>
  236. <varlistentry id="msggrep">
  237. <term><command>msggrep</command></term>
  238. <listitem>
  239. <para>Extracts all messages of a translation catalog that match a
  240. given pattern or belong to some given source files</para>
  241. <indexterm zone="ch-system-gettext msggrep">
  242. <primary sortas="b-msggrep">msggrep</primary>
  243. </indexterm>
  244. </listitem>
  245. </varlistentry>
  246. <varlistentry id="msginit">
  247. <term><command>msginit</command></term>
  248. <listitem>
  249. <para>Creates a new <filename class="extension">.po</filename> file,
  250. initializing the meta information with values from the user's
  251. environment</para>
  252. <indexterm zone="ch-system-gettext msginit">
  253. <primary sortas="b-msginit">msginit</primary>
  254. </indexterm>
  255. </listitem>
  256. </varlistentry>
  257. <varlistentry id="msgmerge">
  258. <term><command>msgmerge</command></term>
  259. <listitem>
  260. <para>Combines two raw translations into a single file</para>
  261. <indexterm zone="ch-system-gettext msgmerge">
  262. <primary sortas="b-msgmerge">msgmerge</primary>
  263. </indexterm>
  264. </listitem>
  265. </varlistentry>
  266. <varlistentry id="msgunfmt">
  267. <term><command>msgunfmt</command></term>
  268. <listitem>
  269. <para>Decompiles a binary message catalog into raw translation
  270. text</para>
  271. <indexterm zone="ch-system-gettext msgunfmt">
  272. <primary sortas="b-msgunfmt">msgunfmt</primary>
  273. </indexterm>
  274. </listitem>
  275. </varlistentry>
  276. <varlistentry id="msguniq">
  277. <term><command>msguniq</command></term>
  278. <listitem>
  279. <para>Unifies duplicate translations in a translation catalog</para>
  280. <indexterm zone="ch-system-gettext msguniq">
  281. <primary sortas="b-msguniq">msguniq</primary>
  282. </indexterm>
  283. </listitem>
  284. </varlistentry>
  285. <varlistentry id="ngettext">
  286. <term><command>ngettext</command></term>
  287. <listitem>
  288. <para>Displays native language translations of a textual message whose
  289. grammatical form depends on a number</para>
  290. <indexterm zone="ch-system-gettext ngettext">
  291. <primary sortas="b-ngettext">ngettext</primary>
  292. </indexterm>
  293. </listitem>
  294. </varlistentry>
  295. <varlistentry id="recode-sr-latin">
  296. <term><command>recode-sr-latin</command></term>
  297. <listitem>
  298. <para>Recodes Serbian text from Cyrillic to Latin script</para>
  299. <indexterm zone="ch-system-gettext recode-sr-latin">
  300. <primary sortas="b-recode-sr-latin">recode-sr-latin</primary>
  301. </indexterm>
  302. </listitem>
  303. </varlistentry>
  304. <varlistentry id="xgettext">
  305. <term><command>xgettext</command></term>
  306. <listitem>
  307. <para>Extracts the translatable message lines from the given source
  308. files to make the first translation template</para>
  309. <indexterm zone="ch-system-gettext xgettext">
  310. <primary sortas="b-xgettext">xgettext</primary>
  311. </indexterm>
  312. </listitem>
  313. </varlistentry>
  314. <varlistentry id="libasprintf">
  315. <term><filename class="libraryfile">libasprintf</filename></term>
  316. <listitem>
  317. <para>defines the <emphasis>autosprintf</emphasis> class, which makes
  318. C formatted output routines usable in C++ programs, for use with the
  319. <emphasis>&lt;string&gt;</emphasis> strings and the
  320. <emphasis>&lt;iostream&gt;</emphasis> streams</para>
  321. <indexterm zone="ch-system-gettext libasprintf">
  322. <primary sortas="c-libasprintf">libasprintf</primary>
  323. </indexterm>
  324. </listitem>
  325. </varlistentry>
  326. <varlistentry id="libgettextlib">
  327. <term><filename class="libraryfile">libgettextlib</filename></term>
  328. <listitem>
  329. <para>a private library containing common routines used by the
  330. various Gettext programs; these are not intended for general use</para>
  331. <indexterm zone="ch-system-gettext libgettextlib">
  332. <primary sortas="c-libgettextlib">libgettextlib</primary>
  333. </indexterm>
  334. </listitem>
  335. </varlistentry>
  336. <varlistentry id="libgettextpo">
  337. <term><filename class="libraryfile">libgettextpo</filename></term>
  338. <listitem>
  339. <para>Used to write specialized programs that process
  340. <filename class="extension">.po</filename> files; this library is
  341. used when the standard applications shipped with Gettext (such as
  342. <command>msgcomm</command>, <command>msgcmp</command>,
  343. <command>msgattrib</command>, and <command>msgen</command>) will
  344. not suffice</para>
  345. <indexterm zone="ch-system-gettext libgettextpo">
  346. <primary sortas="c-libgettextpo">libgettextpo</primary>
  347. </indexterm>
  348. </listitem>
  349. </varlistentry>
  350. <varlistentry id="libgettextsrc">
  351. <term><filename class="libraryfile">libgettextsrc</filename></term>
  352. <listitem>
  353. <para>A private library containing common routines used by the
  354. various Gettext programs; these are not intended for general use</para>
  355. <indexterm zone="ch-system-gettext libgettextsrc">
  356. <primary sortas="c-libgettextsrc">libgettextsrc</primary>
  357. </indexterm>
  358. </listitem>
  359. </varlistentry>
  360. <varlistentry id="preloadable_libintl.so">
  361. <term><filename class="libraryfile">preloadable_libintl</filename></term>
  362. <listitem>
  363. <para>A library, intended to be used by LD_PRELOAD that assists
  364. <filename class="libraryfile">libintl</filename> in logging
  365. untranslated messages.</para>
  366. <indexterm zone="ch-system-gettext preloadable_libintl.so">
  367. <primary sortas="c-preloadable_libintl.so">preloadable_libintl</primary>
  368. </indexterm>
  369. </listitem>
  370. </varlistentry>
  371. </variablelist>
  372. </sect2>
  373. </sect1>