diff --git a/dviwin.cpp b/dviwin.cpp index cb4c3c709..8aec6b352 100644 --- a/dviwin.cpp +++ b/dviwin.cpp @@ -421,7 +421,7 @@ void dviWindow::drawDVI() dvi_time = 0; // force init_dvi_file QApplication::restoreOverrideCursor(); QMessageBox::critical( this, i18n("HEY"), - QString(i18n("What's this? DVI problem!\n")) + i18n("What's this? DVI problem!\n") + dvi_oops_msg, i18n("OK")); return; @@ -455,7 +455,7 @@ void dviWindow::drawDVI() QApplication::restoreOverrideCursor(); paint.end(); QMessageBox::critical( this, i18n("HEY"), - QString(i18n("What's this? DVI problem!\n")) + i18n("What's this? DVI problem!\n") + dvi_oops_msg, i18n("OK")); return; diff --git a/kdvi.cpp b/kdvi.cpp index 312181a50..14a3ed75d 100644 --- a/kdvi.cpp +++ b/kdvi.cpp @@ -237,7 +237,7 @@ void kdvi::makeMenuBar() menuBar->insertSeparator(); - QPopupMenu *help = kapp->getHelpMenu(true, QString(i18n("DVI Viewer")) + QPopupMenu *help = kapp->getHelpMenu(true, i18n("DVI Viewer") + " " + KDVI_VERSION + i18n("\n\nby Markku Hihnala") + " (mah@ee.oulu.fi)"); @@ -514,7 +514,7 @@ void kdvi::openFile( QString name) if ( ! QFileInfo( name ).isReadable() ) { QMessageBox::information( this, i18n("Notice"), - QString(i18n("Can't read file:\n")) + + i18n("Can't read file:\n") + oname, i18n("OK")); return; } @@ -929,8 +929,7 @@ void kdvi::selectSmall() void kdvi::shrinkChanged(int s) { - QString t; - t.sprintf(i18n("Shrink: %d"), s ); + QString t = i18n("Shrink: %1").arg( s ); statusBar->changeItem( t, ID_STAT_SHRINK); } diff --git a/print.cpp b/print.cpp index 72df22ece..b01975dc0 100644 --- a/print.cpp +++ b/print.cpp @@ -61,7 +61,7 @@ print::~print() void print::setFile( QString _file ) { ifile = ofile = _file.copy(); - setCaption( QString(i18n(i18n("Print "))) + ifile ); + setCaption( i18n("Print ") + ifile ); QString of( _file ); if ( of.right(4) == ".dvi" ) of = of.left( of.length()-4 );