i18n and GUI under Windows

Andr? Roberge andre.roberge at ns.sympatico.ca
Mon Sep 6 20:25:37 EDT 2004


In short: I'm looking for a *simple* example of how to write a program
that can have its GUI in at least two languages under Windows ...
using only Python, of course!

I've downloaded Guido van Robot (great program!) so that my kids could
learn the basics of programming.  Apparently it is set up to work in
French under *nix, but not under Windows.  I've looked at the source
code, found where this is noted, scratched my head, looked at the web
to find solution, to no avail. GvR uses wxPython.

On the wxWidget website, it is said that there is a "internat" sample
program, that would seem to do what I'm looking for, but it doesn't
seem to be in the wxPython distribution.

I haven't found any simple demonstration with Tkinter either (or
Pythoncard, anygui, easygui, etc...).   Sigh....

I *think* I understand the basics of unicode encoding (at the very
least, enough to have been able to modify Leo [another great program!]
to work properly on my machine [actually, it was well explained on the
web site]).

Any pointer, or sample program (like those found in useless Python)
demonstrating how this can be done would be appreciated.  So, how do
you write a program that can display on a label (or menu item) either
"Guido" or "André"  (Andre´) depending on the user's choice.  
[Ok, that's not a good translation, but still :-)]

I am not a real programmer, just a hobbyist.  However, if I can get
enough pointers to answer my question within the next week, I commit
myself to:
1) write a detailed tutorial in both French and English, explaining
how to do this in a way even I can understand :-)
2) find a way to modify GvR so that it works in languages other than
English on Windows.

Hey, I've already installed Poedit in anticipation of all the
translations I am going to do ;-)

André Roberge



More information about the Python-list mailing list