[wxPython-users] wx.Wizard and i18n
Stefano Bartaletti
s.bartaletti at dyemagic.com
Mon Jul 9 00:29:13 PDT 2007
> The translated Cancel isn't coming from the wx.mo file, but from GTK
> because wx is using just the ID for that button (without a label) so
> wxGTK is using a stock button for it.
>
> Here is a quick test you can do to see if wx is able to find the
>
> translation files. Try this in a PyShell:
> >>> import wx
> >>> wx.GetTranslation("&Next >")
>
> u'&Next >'
>
> >>> lc = wx.Locale(wx.LANGUAGE_ITALIAN)
> >>> lc.IsOk()
>
> True
>
> >>> wx.GetTranslation("&Next >")
>
> u'&Successivo >'
>
Well that was nice, next time I promise I'll read the wx demo files more
carefully! Thanks :-)
> If the environment and the system locale is setup properly then you
> should be able to get that by default, or at least simply by creating a
> wx.Locale with default parameters.
That was solved, too. I went to install and configure 'language-selector' and
now it works with the default settings.
Thanks again
Stefano
More information about the wxpython-users
mailing list