Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.3.1
-
None
Description
QString trDir( ":/QtTranslations/translations" ); isfotr.load( "isfo", trDir ); qttr.load( "qt_cs", trDir ); qtbasetr.load( "qtbase_cs", trDir ); qthelptr.load( "qt_help_cs", trDir ); qtmultimediatr.load( "qtmultimedia_cs", trDir ); qtscripttr.load( "qtscript_cs", trDir ); qtxmlpatternstr.load( "qtxmlpatterns_cs", trDir ); qtqmlviewertr.load( "qmlviewer_cs", trDir ); qApp->installTranslator( &isfotr; ); qApp->installTranslator( &qttr; ); qApp->installTranslator( &qtbasetr; ); qApp->installTranslator( &qthelptr; ); qApp->installTranslator( &qtmultimediatr; ); qApp->installTranslator( &qtscripttr; ); qApp->installTranslator( &qtxmlpatternstr; ); qApp->installTranslator( &qtqmlviewertr; );
and then at the end of my application there is a question:
if ( QMessageBox::information( this, tr( "Info"), tr( "Do you want to terminate the application?" ), QMessageBox::Yes, QMessageBox::No | QMessageBox::Escape | QMessageBox::Default ) == QMessageBox::Yes )
Expected result:
The message box buttons should display 'Ano' and 'Ne'
Actual result:
The message box buttons display 'Yes' and 'No'