intltool.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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-intltool" role="wrap">
  8. <?dbhtml filename="intltool.html"?>
  9. <sect1info condition="script">
  10. <productname>intltool</productname>
  11. <productnumber>&intltool-version;</productnumber>
  12. <address>&intltool-url;</address>
  13. </sect1info>
  14. <title>Intltool-&intltool-version;</title>
  15. <indexterm zone="ch-system-intltool">
  16. <primary sortas="a-Intltool">Intltool</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Intltool is an internationalization tool used for extracting
  21. translatable strings from source files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&intltool-fin-sbu;</seg>
  27. <seg>&intltool-fin-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Intltool</title>
  33. <para>First fix a warning that is caused by perl-5.22 and later:</para>
  34. <screen><userinput remap="pre">sed -i 's:\\\${:\\\$\\{:' intltool-update.in</userinput></screen>
  35. <note><para>The above regular expression looks unusual because of all the
  36. baxkslashes. What it does is add a backslash before the right brace
  37. character in the sequence '\${' resulting in '\$\{'.</para></note>
  38. <para>Prepare Intltool for compilation:</para>
  39. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  40. <para>Compile the package:</para>
  41. <screen><userinput remap="make">make</userinput></screen>
  42. <para>To test the results, 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. install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-intltool" role="content">
  49. <title>Contents of Intltool</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <segtitle>Installed directories</segtitle>
  53. <seglistitem>
  54. <seg>intltool-extract, intltool-merge, intltool-prepare,
  55. intltool-update, and intltoolize</seg>
  56. <seg>/usr/share/doc/intltool-&intltool-version; and
  57. /usr/share/intltool</seg>
  58. </seglistitem>
  59. </segmentedlist>
  60. <variablelist>
  61. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  62. <?dbfo list-presentation="list"?>
  63. <?dbhtml list-presentation="table"?>
  64. <varlistentry id="intltoolize">
  65. <term><command>intltoolize</command></term>
  66. <listitem>
  67. <para>Prepares a package to use intltool</para>
  68. <indexterm zone="ch-system-intltool intltoolize">
  69. <primary sortas="b-intltoolize">intltoolize</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="intltool-extract">
  74. <term><command>intltool-extract</command></term>
  75. <listitem>
  76. <para>Generates header files that can be read by <command>gettext</command></para>
  77. <indexterm zone="ch-system-intltool intltool-extract">
  78. <primary sortas="b-intltool-extract">intltool-extract</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="intltool-merge">
  83. <term><command>intltool-merge</command></term>
  84. <listitem>
  85. <para>Merges translated strings into various file types</para>
  86. <indexterm zone="ch-system-intltool intltool-merge">
  87. <primary sortas="b-intltool-merge">intltool-merge</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="intltool-prepare">
  92. <term><command>intltool-prepare</command></term>
  93. <listitem>
  94. <para>Updates pot files and merges them with translation files</para>
  95. <indexterm zone="ch-system-intltool intltool-prepare">
  96. <primary sortas="b-intltool-prepare">intltool-prepare</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="intltool-update">
  101. <term><command>intltool-update</command></term>
  102. <listitem>
  103. <para>Updates the po template files and merges them with the translations</para>
  104. <indexterm zone="ch-system-intltool intltool-update">
  105. <primary sortas="b-intltool-update">intltool-update</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </sect2>
  111. </sect1>