« Return to Thread: Re: how to localize a common dialog box

Re: how to localize a common dialog box

by Public cai :: Rate this Message:

Reply to Author | View in Thread

Thanks guys for your answers!

Shame on me, but I still don't know what is wrong in my code...

Firstly, my code is C++ code and it's using wxWidgets, not wxPython. I
asked on this list because it seemed to me that I get the answer
quicker.

Secondly, my code already translates the strings it uses. Like this:
  locale.Init(wxLANGUAGE_GERMAN);
  locale.AddCatalogLookupPathPrefix(localePrefix); // localePrefix is
a local path ending with "...\lang"
  locale.AddCatalog(catalog); // this is a .mo file (we use several .mo files)

What lacks is the translation of common dialog boxes.I think it may
have to do with what you wrote:

> Note that you can use gettext and local or wx.GetTranslation and  wx.Locale, you should use the later if you want wxPython standard  strings to be translated
>> Note that this is NOT a requirement for wxPython-internal strings (such as stock button labels) to be translated. BOTH ways work. All one needs to make sure is that the normal Python library locale/gettext modules are imported and initialized *before* wxPython is imported.

Considering that I'm using wxWidgets and not wxPython, do you know
what I should do to accomplish this?

Thanks,

Cristina.
_______________________________________________
wxpython-users mailing list
wxpython-users@...
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

 « Return to Thread: Re: how to localize a common dialog box