The Blog is Hot

PyG3T – Python gettext Translation Toolkit

Posted in dansk-gruppen, opensuse by mschlander on 14/01/2012

Introducing PyG3T

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’
5) Enjoy

About these ads

2 Responses

Subscribe to comments with RSS.

  1. [...] Introducing PyG3T [...]

  2. Steve Emms said, on 28/01/2012 at 12:58

    PyG3T has been featured at LinuxLinks.com


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: