wxPython i18n question

L

Logan

Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?

Thanks in advance for any hints!
 
M

Martin v. =?iso-8859-15?q?L=F6wis?=

Logan said:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?

That should certainly be possible. In standard wxPython builds, you
are restricted to characters of the "host" encoding (I'm not sure what
that encoding is). There are separate "Unicode" builds of wxPython,
where you can use Unicode strings throughout.

Regards,
Martin
 
J

Jarek Zgoda

Logan said:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?

Yes, look at article on i18n at wxPython Wiki.
 
L

Logan

Yes, look at article on i18n at wxPython Wiki.

You mean to use GNU gettext? I thought, this will only provide
i18n for the parts of the application which I wrote myself (e.g.
buttons, menus), but *not* for predefined wxPython widgets like
file dialogs etc. !?
 
J

Jarek Zgoda

Logan said:
You mean to use GNU gettext? I thought, this will only provide
i18n for the parts of the application which I wrote myself (e.g.
buttons, menus), but *not* for predefined wxPython widgets like
file dialogs etc. !?

You should not only set usual locale by locale.setlocale() call, but
also use wxLocale. Check wxWindows documentation on wxLocale.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,171
Messages
2,570,936
Members
47,472
Latest member
KarissaBor

Latest Threads

Top