Hi,

I have a program in which descriptions are in English.
I would like to use two another langauges (Polish end German).
I trying to use QTranslator. But this don't function.

I have a dialog width static const text, for example:
const QString ClassName:hrase = tr( "english_word' );

I create '.ts' file, I translate this on in Qt Linguist and save like '.mq'.
In function 'main' I wrote followed code:

QTranslator app_translator( 0 );
const bool ret = app_translator.load( "bsc_pl.qm", qApp->applicationDirPath() );
app.installTranslator( &app_translator );

All is OK. ret is true.

Next I checking all transaltions:

QValueList<QTranslatorMessage> list = app_translator.messages();
QValueList<QTranslatorMessage>::Iterator it = list.begin();
while ( it != list.end() ) {
qWarning( (*it).translation() );
++it;
}

Is OK. I see all my translations.

But. Dialog is always English.
WHY?

Best Regards
Piotr