Connecting Tech Pros Worldwide Forums | Help | Site Map

wxPython i18n question

Logan
Guest
 
Posts: n/a
#1: Jul 18 '05
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!

--
mailto: logan@phreaker(NoSpam).net


Martin v. Löwis
Guest
 
Posts: n/a
#2: Jul 18 '05

re: wxPython i18n question


Logan <logan@phreaker.nospam> writes:
[color=blue]
> Is it possible to tell the wxPython widgets (e.g. file dialogs)
> to use another language (instead of English)?[/color]

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
Jarek Zgoda
Guest
 
Posts: n/a
#3: Jul 18 '05

re: wxPython i18n question


Logan <logan@phreaker.nospam> pisze:
[color=blue]
> Is it possible to tell the wxPython widgets (e.g. file dialogs)
> to use another language (instead of English)?[/color]

Yes, look at article on i18n at wxPython Wiki.

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zgoda@chrome.pl http://zgoda.jogger.pl/
Logan
Guest
 
Posts: n/a
#4: Jul 18 '05

re: wxPython i18n question


On Mon, 24 Nov 2003 22:51:14 +0000, Jarek Zgoda wrote:
[color=blue]
> Logan <logan@phreaker.nospam> pisze:
>[color=green]
>> Is it possible to tell the wxPython widgets (e.g. file dialogs)
>> to use another language (instead of English)?[/color]
>
> Yes, look at article on i18n at wxPython Wiki.[/color]

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. !?

--
mailto: logan@phreaker(NoSpam).net

Jarek Zgoda
Guest
 
Posts: n/a
#5: Jul 18 '05

re: wxPython i18n question


Logan <logan@phreaker.nospam> pisze:
[color=blue][color=green][color=darkred]
>>> Is it possible to tell the wxPython widgets (e.g. file dialogs)
>>> to use another language (instead of English)?[/color]
>>
>> Yes, look at article on i18n at wxPython Wiki.[/color]
>
> 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. !?[/color]

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

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zgoda@chrome.pl http://zgoda.jogger.pl/
Closed Thread