PyG3T – Python gettext Translation Toolkit
PyG3T (Python gettext Translation Toolkit) is a very useful suite of python based command line tools for gettext translators. It’s developed by Danish translators Ask and Kenneth and it’s been a great help for me for quite some time – recently there was a new release adding even more tools to the suite.
PyG3T includes among others the following tools:
- podiff for creating diffs
- gtgrep which allows you to grep in PO files in msgid or msgstr only and ignoring accelerators
- poabc checks for common mistakes, inconsistent punctuation etc.
- gtmerge provides an alternative for msgmerge, for merging PO/POT files
- gtxml checks for ill-formed xml
Installing PyG3T on openSUSE
1) Download the tarball and uncompress it
2) Enter the resulting folder and run ‘python setup.py bdist_rpm’. This builds an RPM in the ‘dist’ subdir
3) Install the resulting RPM e.g. with ‘zypper install /path/to/pyg3t-0.3.1-1.noarch.rpm’
4) Each tool has a useful help page, try e.g. ‘gtgrep –help’