Qt-interest Archive, May 2008
Localisation of QMessagebox/QWizard
Message 1 in thread
I have implemented a QWizard based class for some application.
The workflow works fine so far. But now I tried to support this class
with our translations for different languages (so e.g. Back, Next buttons..)
I found under QT_BASE_DIR\translations a couple of ts files, which I appended to my existing ts files.
But with no effect at all. All the translations for my own implementations work fine, only that for QMessageBox or for QWizard didn't work at all
Have I overseen something?
best regards
karl-heinz
--
[ signature omitted ]
Message 2 in thread
Hi,
I do it differently and it works fine. I load both translations (the
application local translations and the ones from Qt) as in this example code
snippet:
...
appTranslator = new QTranslator(0);
appTranslator->load("/path/to/app.qm");
qApp->installTranslator(app2Translator);
qtTranslator = new QTranslator(0);
qtTranslator->load("/path/to/qt_<language>.qm");
qApp->installTranslator(qtTranslator);
...
Hope this helps, René
On Wed, May 7, 2008 19:28, Karl-Heinz Reichel wrote:
> I have implemented a QWizard based class for some application.
> The workflow works fine so far. But now I tried to support this class
> with our translations for different languages (so e.g. Back, Next buttons..)
>
>
> I found under QT_BASE_DIR\translations a couple of ts files, which I
> appended to my existing ts files. But with no effect at all. All the
> translations for my own implementations work fine, only that for
> QMessageBox or for QWizard didn't work at all
>
>
> Have I overseen something?
>
>
> best regards karl-heinz
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]