[spambayes-dev] RE: State of I18N

Hernán Martínez Foffani hernan at orgmf.com.ar
Wed Oct 20 20:23:25 CEST 2004


I forgot to tell you that I'm binding _ in the builtins
namespace (through gettext.install())
While it's handy I don't know if that's ok for you.

[Regarding subclassing str]
> 
> class gt_str(str):
>     def __repr__(self):
>         return "_(" + super(gt_str, self).__repr__() + ")"
> 
> I said it's a partial solution because the dict that
> rcparse generates does not equal (items of different types)
> the one obtained by importing the dialog.  Does it matter?
> (It's also "partial" because I haven't tested it yet. heh..)

Tested.
A minor change was needed to avoid _() on empty strings.
It seems to work ok.

-H.



More information about the spambayes-dev mailing list