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:
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.
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:
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: