adonthell-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-general] Dialog engine and Fame (Was: Re: New map engin


From: Alexandre Courbot
Subject: Re: [Adonthell-general] Dialog engine and Fame (Was: Re: New map engine implementation started! :))
Date: 08 Feb 2002 16:52:24 +0100

> Yep, it works indeed :)
> 
> One problem I encountered though. It seems to compute the default locale
> directory from the place python itself is installed. I have it in
> /usr/local, so it looks for the locales in /usr/local/share/locale, and
> thus doesn't find the gimp locale.

Right, but you can pass an optionnal parameter to gettext.Catalog,
telling it the base directory of your .mo files. have a look at
gettext.py.

> But that aside, it seems to be pretty easy. I wanted to move the text out
> of the python scripts anyway, and instead of keeping it inside a file of
> our own, we can as well keep it in a GNU .mo file. 

Fine! I don't know though, whether you can do without text at all in
Python - but this will certainly make things clearer.

> So yeah, I'll start improving on dlgedit and will add that i18n stuff in
> the process. Sounds good?

Extremly! :) But I don't know whether it should be dlgedit's job to
provide an interface for translations. I mean, translating means writing
.po files, as gettext finds a translation from the original English
text. There are also good .po files editors existing, like for instance
kbabel (and Emacs! and Emacs! :))

Alex.

-- 
http://www.gnurou.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]