[Fedora-livecd-list] [PATCH 4/6] Translation

Jeremy Katz katzj at redhat.com
Mon Aug 6 21:52:05 UTC 2007


On Mon, 2007-08-06 at 23:29 +0200, Jeroen van Meeuwen wrote:
> Jeremy Katz wrote:
> > On Sun, 2007-08-05 at 20:36 +0200, Jeroen van Meeuwen wrote:
> >> A patch which is enabling translation in the python code, but is not
> >> including that what builds livecd-tools or it's RPMs.
> > 
> > Using rhpl.translate for new code is probably a bad idea...  it doesn't
> > support all gettext features and also trips up some interesting areas
> > with python's unicode support.
>
> New code? It's been 6 months since Boston already. Not sure though if
> that means you're old? ;-) I don't know what rhpl does or doesn't do
> right; it works. Should it get fixed before you even think about
> applying any translation patch whatsoever, or can we live with it for
> the moment?

Realistically, you don't want to be using rhpl.translate in revisor
either.  You want to be using python's native gettext module.
rhpl.translate was created when python's gettext module was awful (to be
kind :-).

And I'd really rather _not_ apply something that I know is deprecated
and going to go away in the future.  The difference should mostly be
switching to import gettext instead of rhpl.translate and then using _ =
gettext.gettext.

/me makes a note to make rhpl.translate start spewing deprecation
warnings soon...

Jeremy




More information about the livecd mailing list