From 24baa1508255b489d3e92c9f158c666dc9fd8385 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 17 Jan 2011 12:46:31 +0000 Subject: Added tr tags to two messageboxes --- client/mainwindow.cc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 677c635..3f12a5c 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -136,9 +136,10 @@ void MainWindow::closeCommit() void MainWindow::closeNoCommit() { QMessageBox::information(this, - "Closing without commit", - "This session will be stored on this computer only." - " To reopen it at a later time, simply open the same patient again."); + tr("Closing without commit"), + tr("This session will be stored on this computer " + "only. To reopen it at a later time, simply " + "open the same patient again.")); sessions.add(cpr, user, netcom.sessionid); isStored = true; close(); @@ -151,7 +152,7 @@ void MainWindow::closeDiscard() tr("This session will NOT be " "stored in the journal.
" "Are you sure you want to continue?"), - QMessageBox::Yes | QMessageBox::No) + QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { netcom.discard(); sessions.remove(cpr); @@ -170,10 +171,12 @@ extern QWidget *viewer; void MainWindow::closeEvent(QCloseEvent *event) { if(isStored || QMessageBox::question(this, - "Discard", - "This session will NOT be stored in the journal.
" - "Are you sure you want to continue?", - QMessageBox::Yes | QMessageBox::No) + tr("Discard"), + tr("This session will " + "NOT be stored in " + "the journal.
" + "Are you sure you want to continue?"), + QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { if(!isStored) { netcom.discard(); -- cgit v1.2.3