Message
I just created a method for re-populating the text visible on screen, which I call following language change.
David
···
-----Original Message-----
From: Peter Damoc [mailto:pdamoc@gmail.com]
Sent: Friday, March 30, 2007 2:05 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] I18N Software Internationalization
Hi Paulo,
This is how i18n works. The widgets receive just text not some magic object that morphs on events. You need to recreate everything that received translatable text!
If you decouple the interface from the business logic this shouldn’t be too hard otherwise the simplest way to handle the problem is to just ask the user to restart the application and save the language information in a configuration file. I don’t think the user changes the language too often.Peter.
On 3/30/07, ** Paulo Henrique Amorim** <paulojamorim@gmail.com > wrote:
Hello,
I am internationalizing a software, but it appeared a problem. I add 3 language’s in MenuBar in the hour that program user change language the program not language change.Code: Event OnMenuChange refer the one language. language = gettext.translation('en', './locale', languages=['languages']) language.install(unicode = True) _ = language.gettext It only functions when code execute before calling the Frame.
Best regards
Paulo Henrique J. Amorim
–
There is NO FATE, we are the creators.