i18n the wxPython way vs. the Python way

Okay, I'm still working on i18n, and I'm making good progress. But I have
another question.

I've identified strings that respond to my program's wxGetTranslation calls
and change with the change of languages. I've identified strings (such as
the buttons in wxMessageDialog on Windows and most of the text in a File
Dialog) that comes from the OS and does not respond to wxGetTranslation no
matter what I do. I've also got embedded MySQL giving error messages in the
appropriate language. So far, so good.

However, I understand there's this other group of strings, strings provided
by wxPython's i18n, strings that are brought in from the
./locale/language/LC_MESSAGES/wxstd.mo file. I think I know how to indicate
what language these strings should be translated into, but I'm not positive.
I think an example would be the strings used on Linux to create the
wxMessageDialog, which as I understand it doesn't come from the OS on that
platform (unlike Windows) but is created by wxPython.

Can someone give me an example of a string that comes from wxPython **on
Windows** that should respond to proper localization for the programming
language? I need to prove to myself that I've really got all the bases
covered properly as far as i18n goes before I release my program to an
international audience.

Thanks in advance,
David

ยทยทยท

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Tuesday, July 20, 2004 5:37 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] i18n the wxPython way vs. the Python way

David Woods wrote:

I have attached a little wxPython app here that I think raises some
questions. It implements Internationalization in two different ways, the
wxPython way using wxLocale and the Python way using gettext, at least as
near as I can figure out.

If you choose to use the wxPython way, you cannot change languages in mid
stream, while if you use the Python way, you can. I would like to be able
to give users the ability to change language in mid-stream, as some people
use my application to study languages and I can see situations where it
might aid collaboration.

So my questions are this:

1. Am I doing something wrong in the way I implement changing languages

the

wxPython way? I'm pretty sure that under wxPython 2.4.2.4, the code here
worked alright, but I get an exception with wxPython 2.5.1.5, at least on
Win2K. Is there a wxPython way to do what I'm trying?

I don't really know much about wxLocale. Asking on wx-users might get
better results.

2. If the answer to question #1 is that there isn't a wxPython way to do
what I want, can anyone think of any problems I might experience if I just
do things the Python way I have implemented here? My biggest concern is
that there may be prompts from wxPython that come through to users in some
parts of the program, and my assumption is that the wxPython way of
implementing i18n would catch these while the Python way would not.

Correct. All the C++ code will be using wxGetTranslation internally.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org