Am Sonntag, 8. August 2004 00:21 schrieb Jean-Marc Lasgouttes: > > The following patch is supposed to make sure that the qt-internal > strings like in the FileDialog or menu shortcuts get translated (at > least in german and french, the only two translations provided by > trolltech...)/
They have also ar, iw and ru, but unsupported. KDE once translated the qt messages with gettext (I don't know if they still do). Maybe we can use their mechanism and qt translations, too? > However, although I thought I followed the recipe, it does say that > the translations got loaded, but nothing else happen... What does this > mean? It works if you make the translator static: static QTranslator qt( 0 ); The examples do work without a static translator, because it is constructed in main(). BTW, while trying to debug this I found out that adding the line QValueList<QTranslatorMessage> list = qt.messages(); destroys the translator (i. e. strings don't get translated anymore), although QTranslator::messages() is declared const. Georg