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 | <!ENTITY itstool-download-http "https://files.itstool.org/itstool/itstool-&itstool-version;.tar.bz2">
|
---|
8 | <!ENTITY itstool-download-ftp " ">
|
---|
9 | <!ENTITY itstool-md5sum "267a3bdc72a2d8abb1b824f2ea32ee9b">
|
---|
10 | <!ENTITY itstool-size "104 KB">
|
---|
11 | <!ENTITY itstool-buildsize "688 KB">
|
---|
12 | <!ENTITY itstool-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="itstool" xreflabel="itstool-&itstool-version;">
|
---|
16 | <?dbhtml filename="itstool.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>itstool-&itstool-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="itstool">
|
---|
22 | <primary sortas="a-itstool">itstool</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to itstool</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>Itstool</application> extracts messages from XML files
|
---|
30 | and outputs PO template files, then merges translations from MO files
|
---|
31 | to create translated XML files. It determines what to translate and how to
|
---|
32 | chunk it into messages using the W3C Internationalization Tag Set (ITS).
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | &lfs122_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&itstool-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&itstool-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &itstool-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &itstool-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &itstool-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &itstool-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Itstool Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
74 | <para role="required">
|
---|
75 | <xref linkend="DocBook"/>
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | </sect2>
|
---|
79 |
|
---|
80 | <sect2 role="installation">
|
---|
81 | <title>Installation of itstool</title>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | First, fix some compatibility problems with Python-3.12:
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <screen><userinput remap="pre">sed -i 's/re.sub(/re.sub(r/' itstool.in &&
|
---|
88 | sed -i 's/re.compile(/re.compile(r/' itstool.in</userinput></screen>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | Install <application>itstool</application> by running the following
|
---|
92 | commands:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <screen><userinput>PYTHON=/usr/bin/python3 ./configure --prefix=/usr &&
|
---|
96 | make</userinput></screen>
|
---|
97 |
|
---|
98 | <!--
|
---|
99 | <para>
|
---|
100 | To test the results, issue: <command>make check</command>.
|
---|
101 | </para>
|
---|
102 | -->
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | This package does not come with a test suite.
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2 role="content">
|
---|
117 | <title>Contents</title>
|
---|
118 |
|
---|
119 | <segmentedlist>
|
---|
120 | <segtitle>Installed Program</segtitle>
|
---|
121 | <segtitle>Installed Libraries</segtitle>
|
---|
122 | <segtitle>Installed Directory</segtitle>
|
---|
123 |
|
---|
124 | <seglistitem>
|
---|
125 | <seg>
|
---|
126 | itstool
|
---|
127 | </seg>
|
---|
128 | <seg>
|
---|
129 | None
|
---|
130 | </seg>
|
---|
131 | <seg>
|
---|
132 | /usr/share/itstool
|
---|
133 | </seg>
|
---|
134 | </seglistitem>
|
---|
135 | </segmentedlist>
|
---|
136 |
|
---|
137 | <variablelist>
|
---|
138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
139 | <?dbfo list-presentation="list"?>
|
---|
140 | <?dbhtml list-presentation="table"?>
|
---|
141 |
|
---|
142 | <varlistentry id="itstool-prog">
|
---|
143 | <term><command>itstool</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>
|
---|
146 | is used to create translated XML files
|
---|
147 | </para>
|
---|
148 | <indexterm zone="itstool itstool-prog">
|
---|
149 | <primary sortas="b-itstool">itstool</primary>
|
---|
150 | </indexterm>
|
---|
151 | </listitem>
|
---|
152 | </varlistentry>
|
---|
153 |
|
---|
154 | </variablelist>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | </sect1>
|
---|