If you correctly installed Python on Linux, you can access the binary versions from the command line. So, to create a .pot file, you can enter:
$> pygettext [options] source_file_list
I found that I have two versions of pygettext: one for version 2.7 and the other for 3.2, but they seem to work almost the same. To create .mo files from .po files:
$> msgfmt [options] file.po
but you need to make sure that you are not accidentally using the gnu version. The msgfmt version in Python is much simpler. Both teams have help, so you can check the parameters (and versions) with:
$> pygettext --help
and
$> msgfmt --help
If in doubt, loading a Python source as suggested above is a belt and snapping approach.
I still find my way around me, so if someone knows better, add your comments :)
source share