[Gambas-user] Translated project in Gambas

Benoît Minisini gambas at ...1...
Fri Dec 4 23:58:36 CET 2009


> Hi :)
> I already did this, but if a user wants to try other language, can he
> do it from the gui (i.e. without using "env LANG=xx")?
> Thanks
> 

Yes and no. :-)

If you redefine the System.Language property, the localization 
(language+country) will change, but the translations of already loaded forms 
will not be reloaded automatically. You must destroy all your forms, and 
reload it.

The simpler is storing in a configuration file the language wanted by the 
user, define the System.Language at startup with it. If the user wants to 
change it, just tell him to restart the application.

Regards,

-- 
Benoît Minisini




More information about the User mailing list