[wxPython-users] Re: wx.Locale mystery

jonhattan jonhattan at faita.net
Thu Dec 20 05:17:34 PST 2007


Donn Ingle escribió:
>> I do something like the following,
>>     
> I have just tried a 'mixture' of the two like that and it's still confusing. 
>
> If I mix the two and then remove the line:
> _ = wx.GetTranslation
> The app now responds to print _("stuff") but the stock buttons are still all
> in English.
>  I don't think the wx.Locale stuff is doing anything at all - the gettext
> stuff is just working via _
>
>
>   
>> Also be sure that the wxLocale object remains alive during the
>> runtime of your program.
>>     
> How could I check? And what kills it?
>   
I do this in OnInit:

self.loc = wx.Locale(wx.LANGUAGE_SPANISH)

so the locale object is there untill the app is destroyed.

> \d
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>   




More information about the wxpython-users mailing list