[Qt-interest] qt translator

Dan White ygor at comcast.net
Wed Mar 3 19:03:26 CET 2010


Look at <http://doc.trolltech.com/4.6/qtranslator.html#details>, specifically, "Using Multiple Translations"

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Rui Baltazar <flity.flea at gmail.com> wrote:
> i have been able to create the translation files and i am capable of loading
> them at the beginning.
> my problem is the following:
> 
> if i want to have a widget with settings and one of them is the language,
> what should i do to load the correct translation when user changes that
> setting?
> 
> i've tried something like:
> 
> QTranslator translator;
> translator.load("bcg_en");
> ((QApplication *)parent())->installTranslator(&translator);
> 
> but the application blasts..
> 
> any ideas?
> 
> all the best





More information about the Qt-interest-old mailing list