[Thuban-list] Re: translation of thuban

Bernhard Herzog bh at intevation.de
Tue Apr 15 20:31:07 CEST 2003

Jan-Oliver Wagner <jan at intevation.de> writes:

> On Tue, Apr 15, 2003 at 04:47:04AM -0500, Daniel Calvelo Aros wrote:
> > To produce Thuban.mo, run msgfmt (or msgfmt.py) on the attached es.po
> > file (and rename it).
> thanks for your interest and help.
> You've motivated us to add the es.po and translation functionality immediately
> to the CVS :-)

It wasn't quite immediately, but it's in CVS now.

There's a new subdirectory po/ to hold the translations (currently
there's only Daniel's es.po) plus a Makefile and a README with info
about how to manage the po files.

The handling of the po/mo files is not very well integrated with the
build system at the moment. You have to manually run the Makefile on
some occasions, such as building a thuban.pot from the sources, updating
existing .po files and building the mo files (more info in po/README).

Furthermore, the Makefile only works on Unix-like systems and it needs
gettext 0.11. 0.10.x may work but it will at least give you lots of
warnigns because it doesn't really understand python syntax.

Source distributions (created with setup.py sdist) will have a
thuban.pot file and the mo-files so that building thuban from a source
tarball doesn't require gettext, msgfmt etc. and a unix-environment.

Finally, we've not removed the "from Thuban import _" imports. We
explicitly bind a gettext method to _ in Thuban/__init__.py and do not
use gettext.install. The reason is that Thuban can be used as a library
to build other applications on top of (which we do in GREAT-ER) and a
library should not modify the __builtin__ namespace otherwise it could
interfere with the application which could also want to call


Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/

More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)