summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authorsenator <senator>2011-01-17 12:46:31 +0000
committersenator <senator>2011-01-17 12:46:31 +0000
commit24baa1508255b489d3e92c9f158c666dc9fd8385 (patch)
treec06670f2eda2ce585c7b4e11ef501091f3132741 /client/mainwindow.cc
parentabbcca7b57edf26a977dfec013f9c7103d1d37e7 (diff)
Added tr tags to two messageboxes
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc19
1 files 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 <strong>NOT</strong> be "
"stored in the journal.<br/>"
"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 <strong>NOT</strong> be stored in the journal.<br/>"
- "Are you sure you want to continue?",
- QMessageBox::Yes | QMessageBox::No)
+ tr("Discard"),
+ tr("This session will "
+ "<strong>NOT</strong> be stored in "
+ "the journal.<br/>"
+ "Are you sure you want to continue?"),
+ QMessageBox::Yes | QMessageBox::No)
== QMessageBox::Yes) {
if(!isStored) {
netcom.discard();