[Thuban-list] Re: translation of thuban
Daniel Calvelo Aros
dcalvelo at minag.gob.pe
Tue Apr 15 21:44:45 CEST 2003
Bernhard Herzog writes:
> Jan-Oliver Wagner <jan at intevation.de> writes:
> > thanks for your interest and help.
> > You've motivated us to add the es.po and translation functionality
> > 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.
Ok. I will send the CVS-based version in a while, along with fr.po
through the mailing list. Are the Mexican folks interested in
contributing? If so, I'll start with French.
> 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.
I did some search for integration of gettext with distutils but found
nothing. Do you know if anybody is working on that (Martin von Loewis,
maybe)? It would imply including pygettext and msgfmt.py into the
standard library, I guess...
> 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
Right. But isn't thuban.py-the-exe an application using
Thuban-the-library as its main module? Or do you mean Thuban-the-library
is Lib+Model, not UI?
I agree with using only the '_' definition as in CVS now.
BTW it seems you (well, the listmanager anyway) have not configured a
Reply-To:Thuban-list at intevation.de. Is CC-ing the common way of using
the list? (Just curious...)
> Intevation GmbH http://intevation.de/
> Sketch http://sketch.sourceforge.net/
> MapIt! http://www.mapit.de/
> Thuban-list mailing list
> Thuban-list at intevation.de
-- Daniel Calvelo Aros
-- Dirección General de Información Agraria
-- Ministerio de Agricultura
-- (51-1) 424-9001
More information about the Thuban-list