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

Re: Re: how to localize a common dialog box

by Werner F. Bruhin :: Rate this Message:

Reply to Author | View in Thread

Cristinia,

Public cai wrote:
> Hi list,
>
> does anybody know how to display a common dialog box such as
> wxDirDialog with its strings translated to the language used by the
> code calling this dialog box (in this case, German)? I could translate
> the message given as parameter to wxDirDialog constructor. Also, the
> title could be easily changed by using wxDialog::SetTitle(), but the
> name of the buttons, how could I also translate them?...
>  
Have a look at the I18N demo in the wxPython demo and at the following wiki:
http://wiki.wxpython.org/Internationalization
http://wiki.wxpython.org/ValidI18nCodes
http://wiki.wxpython.org/XRCAndI18N

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 and when you distribute your application you
should not forget to include the appropriate language.mo files from the
wxPython version you are using.

Werner
_______________________________________________
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