intltool.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Intltool 是一个从源代码文件中提取可翻译字符串的国际化工具。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&intltool-ch6-sbu;</seg>
  26. <seg>&intltool-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Intltool</title>
  32. <para>首先修复由 perl-5.22 及更新版本导致的警告:</para>
  33. <screen><userinput remap="pre">sed -i 's:\\\${:\\\$\\{:' intltool-update.in</userinput></screen>
  34. <para>准备安装 Intltool:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>编译该软件包:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>运行以下命令以测试编译结果:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <para>安装该软件包:</para>
  41. <screen><userinput remap="install">make install
  42. install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-intltool" role="content">
  45. <title>Intltool 的内容</title>
  46. <segmentedlist>
  47. <segtitle>安装的程序</segtitle>
  48. <segtitle>安装的目录</segtitle>
  49. <seglistitem>
  50. <seg>intltool-extract, intltool-merge, intltool-prepare,
  51. intltool-update, 以及 intltoolize</seg>
  52. <seg>/usr/share/doc/intltool-&intltool-version; 和
  53. /usr/share/intltool</seg>
  54. </seglistitem>
  55. </segmentedlist>
  56. <variablelist>
  57. <bridgehead renderas="sect3">简要描述</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="intltoolize">
  61. <term><command>intltoolize</command></term>
  62. <listitem>
  63. <para>准备为软件包应用 intltool</para>
  64. <indexterm zone="ch-system-intltool intltoolize">
  65. <primary sortas="b-intltoolize">intltoolize</primary>
  66. </indexterm>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="intltool-extract">
  70. <term><command>intltool-extract</command></term>
  71. <listitem>
  72. <para>生成可供 <command>gettext</command> 读取的头文件</para>
  73. <indexterm zone="ch-system-intltool intltool-extract">
  74. <primary sortas="b-intltool-extract">intltool-extract</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="intltool-merge">
  79. <term><command>intltool-merge</command></term>
  80. <listitem>
  81. <para>将翻译好的字符串合并为多种类型的文件</para>
  82. <indexterm zone="ch-system-intltool intltool-merge">
  83. <primary sortas="b-intltool-merge">intltool-merge</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="intltool-prepare">
  88. <term><command>intltool-prepare</command></term>
  89. <listitem>
  90. <para>更新 pot 文件并将它们和翻译文件合并</para>
  91. <indexterm zone="ch-system-intltool intltool-prepare">
  92. <primary sortas="b-intltool-prepare">intltool-prepare</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="intltool-update">
  97. <term><command>intltool-update</command></term>
  98. <listitem>
  99. <para>更新 po 模板文件并将它们和翻译文件合并</para>
  100. <indexterm zone="ch-system-intltool intltool-update">
  101. <primary sortas="b-intltool-update">intltool-update</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. </variablelist>
  106. </sect2>
  107. </sect1>