One thing I would add is that you should
definitely work in the Unicode version of wxPython if you’re EVER going to use languages other than
English.
Windows and Mac OS X use different character
encoding systems, so if you want to work cross-platform and be able to share
data, Unicode means you don’t have to write a character translation
utility. (I’m not sure about Linux.) Also, you may think you’re only going to need
“easy” (ansi-friendly) languages like French, German, and Spanish,
but if your program’s any good, before you know it, someone’s going
to want Greek or Russian or Korean or Chinese.
I did my original programming in the ansi
version of wxPython. I’m now in my 6th month of working
on the conversion to Unicode for the reasons stated above. Doing my
original work in the Unicode version might’ve saved me half that
time. (I got a Russian translation for my program last weekend, and have
had enough inquiries about Chinese support to know it’ll happen some day
soon. I obviously didn’t anticipate this when I started out.)
Good luck,
David Woods
Transana Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison
http://www.transana.org
···
-----Original Message-----
From: Kevin Ollivier
[mailto:kevino@theolliviers.com]
Sent: Wednesday, January 11, 2006
8:26 PM
To:
wxPython-dev@lists.wxwidgets.org
Subject: Re: [wxPython-dev]
application in multiple languages
Hi Thomas,
On Jan 11, 2006, at 6:23 PM, Thomas Thomas wrote:
Hi All,
I have
an application in wxPython . it has menus, labels & buttons with labels in
english hardcoded into it.
Now i
need to deliver the application in german,french etc…
which
will be the best approach…
- to have
seperate application for each language…
2)is
there a aupport for something like a properties file for each language kinda
thing in wxPython
3)instead
of hard coded labels use variables …which will be intialized on startup of
application based on the language from a text file or something…
is there
any other possible/standard approach…
Take a look at gnu gettext, which is supported by Python. I use that
for all my apps and it is a pretty good system. You can find some info on using
it with wxPython here:
http://wiki.wxpython.org/index.cgi/Internationalization
BTW, wxPython-users@lists.wxwidgets.org
is a good place to go when you have general questions about how to approach
certain issues. It’s a much higher traffic list, so you’re more likely to run
into people who have experience with any particular issue and could help
advise.
Hope this helps,
Kevin
thanks
Thomas Thomas
phone
+64 7 855 8478
fax +64 7 855 8871