Ticket #1298 (new defect)

Opened 2 years ago

Last modified 2 years ago

Missing wx application localization setup

Reported by: JacekK Assigned to: JacekK
Priority: major Milestone: 0.9.2
Component: ui Version: 0.9.1
Keywords: localization wx Cc:

Description

Although there is a locale.setlocale() function call in dApp.__init__() method,
it's not enough to provide full wx localization, e.g. generic dialogs and menus remain in English language.
Of course I can fix it, but it requires pure wx access.
I suggest you put something like this in uiApp.setup() mehod:

self._locale = wx.Locale(wx.Locale.GetSystemLanguage())

I did test it on Windows platform only.
Regards

Change History

10/28/09 08:50:00 changed by paul

Okay, this is a good point. We need to call wx.Locale() with the current language in use though, not necessarily the system language, because the app could have changed that using dApp.setLanguage(). And we need to hook this into the dApp.setLanguage() call so it doesn't just run once at instantiation.