[I18n-sig] Re: gettext in the standard library

Martin von Loewis loewis@informatik.hu-berlin.de
Mon, 4 Sep 2000 20:48:58 +0200 (MET DST)


> You could wrap the decoding processing into the _ function:
> 
> def _(s):
>     return unicode(s, "utf-8")
> 
> This would allow you not only to use translatable strings,
> but also any unicode string encoding you like, e.g. utf-8
> or latin1.

Maybe I'm missing something here. How does the catalog come into play
in this definition of _?

Regards,
Martin