I have a program that runs the same way. Unfortunately, for translations to take place, all translated objects must be destroyed and re-created under the new environment.
The first time around, I created a loop to restart the application after setting the right environment. Later, I realized that I could do it without having to restart the entire application. You can do it by using a class or module as startup class, and if you are offering a language selection, of course, your first window will always show up in the language defined by LANG. Anything after that will be shown in the language selected by the user. I have seen python applications, where you click a language in a list and everything in the form translates immediately...the screen doesn't even flash. I wonder if gambas could implement someting like that some day ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user