PDA

View Full Version : Translate help framework's gui



yagabey
14th October 2010, 07:38
Hello,
I am using QTranslator for my application and it works fine:


QApplication a(argc, argv);
QTranslator translator;
translator.load(QDir::currentPath()+"/mikrodiag_tr");
a.installTranslator(&translator);

I also want to translate the gui of my custom QtAssistant(like in simpletextviewer example) that is started from inside my application. I've created my custom translation file(assistant_tr.ts). I am taking "simpletextviewer" example as reference. In that example custom QtAssistant is started with a QProcess:


QStringList args;
args << QLatin1String("-collectionFile")
<< QLatin1String("diagram.qhc")
<< QLatin1String("-enableRemoteControl");
proc->start(app, args);

My question is that how will i load my "assistant_tr.qm" for my custom QtAssistant. Since QProcess doesnt have a "installTranslator" method, i couldnt figure out how to do that. Any idea?

Thanks in advance..
Yigit