is wxTextEntryDialog() text affected by wxLocale() and/or locale .setlocale?

Is the text shown by the wxTextEntryDialog() hardcoded?

I can't seem to change the text of "Cancel" when selecting another language by
doing:

        self.presLang = "fr"
        self.presLan_fr.install() # where self.presLan_fr is created by
gettext.translation()
        self.locale = wxLocale(wxLANGUAGE_FRENCH)
        locale.setlocale(locale.LC_ALL, self.presLang).

Thanks

···

--

Pierre Rouleau

Pierre_Rouleau@ImpathNetworks.com wrote:

Is the text shown by the wxTextEntryDialog() hardcoded?

No, the buttons' text are within _().

I can't seem to change the text of "Cancel" when selecting another language by
doing:

        self.presLang = "fr"
        self.presLan_fr.install() # where self.presLan_fr is created by
gettext.translation()
        self.locale = wxLocale(wxLANGUAGE_FRENCH)
        locale.setlocale(locale.LC_ALL, self.presLang).

Did you try adding the wxWindows language catalog?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!