Itstool extracts messages from XML files and outputs PO template files, then merges translations from MO files to create translated XML files. It determines what to translate and how to chunk it into messages using the W3C Internationalization Tag Set (ITS).
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/itstool/itstool/archive/2.0.7/itstool-2.0.7.tar.gz
Download SHA256 Sum: fba78a37dc3535e4686c7f57407b97d03c676e3a57beac5fb2315162b0cc3176
Download MD5 sum: e759b258617a912acce630de3fa43957
Download size: 79 KB
Estimated disk space required: 688 KB
Estimated build time: less than 0.1 SBU
Required patch: https://www.linuxfromscratch.org/patches/downloads/itstool/itstool-2.0.7-lxml-1.patch
Patch SHA256 Sum: 035a0d22bd1cf37a00357ebc096454e1eb8594f3ea54f8122e8e76fdced0cbec
First, apply a patch to use lxml-6.0.2 for handling the XML files instead of the deprecated (disabled by default) Python module from libxml2-2.15.1:
patch -Np1 -i ../itstool-2.0.7-lxml-1.patch
Now configure itstool by running the following commands:
PYTHON=/usr/bin/python3 ./autogen.sh --prefix=/usr
Now compile itstool by running the following commands:
make
To test the results, issue:
python3 tests/run_tests.py
Now Install, as the root user:
make install