-rw-r--r-- | noncore/settings/netsystemtime/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/mainwindow.cpp b/noncore/settings/netsystemtime/mainwindow.cpp index ab71463..85a46b7 100644 --- a/noncore/settings/netsystemtime/mainwindow.cpp +++ b/noncore/settings/netsystemtime/mainwindow.cpp @@ -168,8 +168,10 @@ void MainWindow::runNTP() msg.append( QString::number( ntpDelay ) ); msg.append( tr( " minutes, but only " ) ); msg.append( QString::number( _lookupDiff / 60 ) ); msg.append( tr(" minutes elapsed since last lookup.<br>Continue?") ); + + QString msg = tr( "You asked for a delay of %1 minutes, but only %2 minutes elapsed since last lookup.<br>Continue?" ).arg( QString::number( ntpDelay ) ).arg( QString::number( _lookupDiff / 60 ) ); switch ( QMessageBox::warning( this, tr( "Continue?" ), msg, QMessageBox::Yes, QMessageBox::No ) ) @@ -340,10 +342,9 @@ void MainWindow::slotNtpFinished( OProcess *p ) float timeShift = diff.toFloat(); if ( timeShift == 0.0 ) return; int secsSinceLast = time - lastLookup; - output = QString::number( timeShift ); - output.append( tr( " seconds" ) ); + output = tr( "%1 seconds").arg(QString::number( timeShift )); // Display information on time server tab if ( ntpTabEnabled ) { |