[PATCH] More strings to be translated

Sergey Starosek sergey.starosek at gmail.com
Tue Dec 3 02:39:03 UTC 2013


Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
---
 qt-ui/mainwindow.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 4929dd9..1012197 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -104,7 +104,7 @@ void MainWindow::on_actionOpen_triggered()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
 	   ui.InfoWidget->isEditing()) {
-		QMessageBox::warning(this, tr("Warning"), "Please save or cancel the current dive edit before opening a new file." );
+		QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before opening a new file."));
 		return;
 	}
 	QString filename = QFileDialog::getOpenFileName(this, tr("Open File"), lastUsedDir(), filter());
@@ -141,7 +141,7 @@ void MainWindow::on_actionClose_triggered()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
 	   ui.InfoWidget->isEditing()) {
-		QMessageBox::warning(this, tr("Warning"), "Please save or cancel the current dive edit before closing the file." );
+		QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before closing the file."));
 		return;
 	}
 	if (unsaved_changes() && (askSaveChanges() == FALSE))
@@ -220,7 +220,7 @@ void MainWindow::on_actionDivePlanner_triggered()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
 	   ui.InfoWidget->isEditing()) {
-		QMessageBox::warning(this, tr("Warning"), "Please save or cancel the current dive edit before trying to plan a dive." );
+		QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before trying to plan a dive."));
 		return;
 	}
 	disableDcShortcuts();
@@ -247,7 +247,7 @@ void MainWindow::on_actionQuit_triggered()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
 	   ui.InfoWidget->isEditing()) {
-		QMessageBox::warning(this, tr("Warning"), "Please save or cancel the current dive edit before closing the file." );
+		QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before closing the file."));
 		return;
 	}
 	if (unsaved_changes() && (askSaveChanges() == FALSE))
@@ -283,7 +283,7 @@ void MainWindow::on_actionAddDive_triggered()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
 	   ui.InfoWidget->isEditing()) {
-		QMessageBox::warning(this, tr("Warning"), "Please save or cancel the current dive edit before trying to add a dive." );
+		QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before trying to add a dive."));
 		return;
 	}
 	dive_list()->rememberSelection();
@@ -844,7 +844,7 @@ void MainWindow::on_actionImportCSV_triggered()
 void MainWindow::editCurrentDive()
 {
 	if(DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING){
-		QMessageBox::warning(this, tr("Warning"), "First finish the current edition before trying to do another." );
+		QMessageBox::warning(this, tr("Warning"), tr("First finish the current edition before trying to do another."));
 		return;
 	}
 
-- 
1.8.3.2



More information about the subsurface mailing list