[Qt-interest] qt translator

Rui Baltazar flity.flea at gmail.com
Wed Mar 3 18:34:29 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100303/a6f87975/attachment.html 


More information about the Qt-interest-old mailing list