aboutsummaryrefslogtreecommitdiffstats
path: root/archive/intltool.xml
blob: ede087466873ca559e34954eff56a5d87e1c5f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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;

  <!ENTITY intltool-download-http "http://launchpad.net/intltool/trunk/&intltool-version;/+download/intltool-&intltool-version;.tar.gz">
  <!ENTITY intltool-download-ftp  " ">
  <!ENTITY intltool-md5sum        "23fbd879118253cb99aeac067da5f591">
  <!ENTITY intltool-size          "188 KB">
  <!ENTITY intltool-buildsize     "1.4 MB">
  <!ENTITY intltool-time          "less than 0.1 SBU">
]>

<sect1 id="intltool" xreflabel="Intltool-&intltool-version;">
  <?dbhtml filename="intltool.html"?>


  <title>Intltool-&intltool-version;</title>

  <indexterm zone="intltool">
    <primary sortas="a-Intltool">Intltool</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Intltool</title>

    <para>
      The <application>Intltool</application> is an internationalization
      tool used for extracting translatable strings from source files,
      collecting the extracted strings with messages from traditional
      source files (<filename class="directory">&lt;source
      directory&gt;/&lt;package&gt;/po</filename>) and merging the
      translations into <filename>.xml</filename>,
      <filename>.desktop</filename> and <filename>.oaf</filename> files.
    </para>

    &lfs75_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&intltool-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&intltool-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &intltool-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &intltool-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &intltool-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &intltool-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">Intltool Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <xref linkend="perl-xml-parser"/>
    </para>

    <para condition="html" role="usernotes">User Notes:
      <ulink url="&blfs-wiki;/intltool"/>
    </para>
  </sect2>

  <sect2 role="installation">
    <title>Installation of Intltool</title>

    <para>
      Install <application>Intltool</application> by running the following
      commands:
    </para>

<screen><userinput>./configure --prefix=/usr &amp;&amp;
make</userinput></screen>

    <para>
      To test the results, issue: <command>make check</command>.
    </para>

    <para>
      Now, as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>make install &amp;&amp;
install -v -m644 -D doc/I18N-HOWTO \
    /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          intltool-extract, intltool-merge, intltool-prepare,
          intltool-update and intltoolize
        </seg>
        <seg>
          None
        </seg>
        <seg>
          /usr/share/doc/intltool-&intltool-version; and
          /usr/share/intltool
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="intltoolize">
        <term><command>intltoolize</command></term>
        <listitem>
          <para>
            prepares a package to use
            <application>intltool</application>.
          </para>
          <indexterm zone="intltool intltoolize">
            <primary sortas="b-intltoolize">intltoolize</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="intltool-extract">
        <term><command>intltool-extract</command></term>
        <listitem>
          <para>
            generates header files that can be read by
            <command>gettext</command>.
          </para>
          <indexterm zone="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>
            merges translated strings into various file types.
          </para>
          <indexterm zone="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>
            updates pot files and merges them with translation files.
          </para>
          <indexterm zone="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>
            updates the <filename>po</filename> template files and merges
            them with the translations.
          </para>
          <indexterm zone="intltool intltool-update">
            <primary sortas="b-intltool-update">intltool-update</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>