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).
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://github.com/itstool/itstool/archive/2.0.7/itstool-2.0.7.tar.gz
MD5 校验和:e759b258617a912acce630de3fa43957
大小:79 KB
预计所需磁盘空间:688 KB
预计构建时间:小于 0.1 SBU
First, apply a patch to use lxml-6.1.1 for handling the XML files instead of the deprecated (disabled by default) Python module from libxml2-2.15.3:
patch -Np1 -i ../itstool-2.0.7-lxml-1.patch
Install itstool by running the following commands:
PYTHON=/usr/bin/python3 ./autogen.sh --prefix=/usr && make
To test the results, issue: python3 tests/run_tests.py.
Now, as the root user:
make install