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

Did you try adding the wxWindows language catalog?

Silly me, no I had not done that. It's the first time I use gettext too.

Is there an easy way to merge wxstd.mo to my own catalog. I used pygettext.py
and msgfmt.py to create my own catalog. I tried to install both catalog at my
program run time but that does not seem to work:

        gettext.install('ivcm', './manual', unicode=0)
        gettext.install('wxstd', './manual', unicode=0)

Thanks!

···

--

Pierre Rouleau

Pierre_Rouleau@ImpathNetworks.com wrote:

Did you try adding the wxWindows language catalog?

Silly me, no I had not done that. It's the first time I use gettext too.

That's okay, I havn't used it much either, so take all that I say below with a grain of salt. :wink:

Is there an easy way to merge wxstd.mo to my own catalog. I used pygettext.py
and msgfmt.py to create my own catalog. I tried to install both catalog at my
program run time but that does not seem to work:

        gettext.install('ivcm', './manual', unicode=0)
        gettext.install('wxstd', './manual', unicode=0)

There isn't any integration between the Python gettext and the one used in wxWindows. You can use either from Python, but the wxWindows C++ code can only use the gettext tools it was compiled with. This means that you probably need to do something like this:

  wxLocale_AddCatalogLookupPathPrefix('./manual')
  # this will load wxstd automatically
  self.locale = wxLocale(wxLANGUAGE_DEFAULT)

Then the wxWindows code should find all its text items in the default catalog. You should also be able to use wxLocale for your own catalogs from Python code, just do something like this to load the message catalog and to rebind the '_' function:

  self.locale.AddCatalog('ivcm')
  _ = wxGetTranslation

···

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