123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-intltool" role="wrap">
- <?dbhtml filename="intltool.html"?>
- <sect1info condition="script">
- <productname>intltool</productname>
- <productnumber>&intltool-version;</productnumber>
- <address>&intltool-url;</address>
- </sect1info>
- <title>Intltool-&intltool-version;</title>
- <indexterm zone="ch-system-intltool">
- <primary sortas="a-Intltool">Intltool</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>Intltool 是一个从源代码文件中提取可翻译字符串的国际化工具。</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&intltool-ch6-sbu;</seg>
- <seg>&intltool-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 Intltool</title>
- <para>首先修复由 perl-5.22 及更新版本导致的警告:</para>
- <screen><userinput remap="pre">sed -i 's:\\\${:\\\$\\{:' intltool-update.in</userinput></screen>
- <para>准备安装 Intltool:</para>
- <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <para>运行以下命令以测试编译结果:</para>
- <screen><userinput remap="test">make check</userinput></screen>
- <para>安装该软件包:</para>
- <screen><userinput remap="install">make install
- install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
- </sect2>
- <sect2 id="contents-intltool" role="content">
- <title>Intltool 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <segtitle>安装的目录</segtitle>
- <seglistitem>
- <seg>intltool-extract, intltool-merge, intltool-prepare,
- intltool-update, 以及 intltoolize</seg>
- <seg>/usr/share/doc/intltool-&intltool-version; 和
- /usr/share/intltool</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="intltoolize">
- <term><command>intltoolize</command></term>
- <listitem>
- <para>准备为软件包应用 intltool</para>
- <indexterm zone="ch-system-intltool intltoolize">
- <primary sortas="b-intltoolize">intltoolize</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="intltool-extract">
- <term><command>intltool-extract</command></term>
- <listitem>
- <para>生成可供 <command>gettext</command> 读取的头文件</para>
- <indexterm zone="ch-system-intltool intltool-extract">
- <primary sortas="b-intltool-extract">intltool-extract</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="intltool-merge">
- <term><command>intltool-merge</command></term>
- <listitem>
- <para>将翻译好的字符串合并为多种类型的文件</para>
- <indexterm zone="ch-system-intltool intltool-merge">
- <primary sortas="b-intltool-merge">intltool-merge</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="intltool-prepare">
- <term><command>intltool-prepare</command></term>
- <listitem>
- <para>更新 pot 文件并将它们和翻译文件合并</para>
- <indexterm zone="ch-system-intltool intltool-prepare">
- <primary sortas="b-intltool-prepare">intltool-prepare</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="intltool-update">
- <term><command>intltool-update</command></term>
- <listitem>
- <para>更新 po 模板文件并将它们和翻译文件合并</para>
- <indexterm zone="ch-system-intltool intltool-update">
- <primary sortas="b-intltool-update">intltool-update</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|