Simplify error messages in record play page and fix poor grammar.
authorWuzzy <almikes@aol.com>
Thu, 21 Sep 2017 16:53:07 +0200
changeset 12478 faed28f815c7
parent 12477 821732e6413d
child 12479 42da9d8d82ab
Simplify error messages in record play page and fix poor grammar.
QTfrontend/ui/page/pageplayrecord.cpp
--- a/QTfrontend/ui/page/pageplayrecord.cpp	Thu Sep 21 16:44:10 2017 +0200
+++ b/QTfrontend/ui/page/pageplayrecord.cpp	Thu Sep 21 16:53:07 2017 +0200
@@ -136,9 +136,8 @@
     {
         QMessageBox recordMsg(this);
         recordMsg.setIcon(QMessageBox::Warning);
-        //: Title of an error message in the demo replay page
-        recordMsg.setWindowTitle(QMessageBox::tr("Record Play - Error"));
-        recordMsg.setText(QMessageBox::tr("Please select record from the list"));
+        recordMsg.setWindowTitle(QMessageBox::tr("Error"));
+        recordMsg.setText(QMessageBox::tr("Please select a file from the list."));
         recordMsg.setWindowModality(Qt::WindowModal);
         recordMsg.exec();
         return ;
@@ -164,9 +163,8 @@
         {
             QMessageBox renameMsg(this);
             renameMsg.setIcon(QMessageBox::Warning);
-            //: Title of an error message in the demo replay page
-            renameMsg.setWindowTitle(QMessageBox::tr("Record Play - Error"));
-            renameMsg.setText(QMessageBox::tr("Cannot rename to ") + newfullname);
+            renameMsg.setWindowTitle(QMessageBox::tr("Error"));
+            renameMsg.setText(QMessageBox::tr("Cannot rename file to %1.").arg(newfullname));
             renameMsg.setWindowModality(Qt::WindowModal);
             renameMsg.exec();
         }
@@ -182,9 +180,8 @@
     {
         QMessageBox recordMsg(this);
         recordMsg.setIcon(QMessageBox::Warning);
-        //: Title of an error message in the demo replay page
-        recordMsg.setWindowTitle(QMessageBox::tr("Record Play - Error"));
-        recordMsg.setText(QMessageBox::tr("Please select record from the list"));
+        recordMsg.setWindowTitle(QMessageBox::tr("Error"));
+        recordMsg.setText(QMessageBox::tr("Please select a file from the list."));
         recordMsg.setWindowModality(Qt::WindowModal);
         recordMsg.exec();
         return ;
@@ -198,9 +195,8 @@
     {
         QMessageBox removeMsg(this);
         removeMsg.setIcon(QMessageBox::Warning);
-        //: Title of an error message in the demo replay page
-        removeMsg.setWindowTitle(QMessageBox::tr("Record Play - Error"));
-        removeMsg.setText(QMessageBox::tr("Cannot delete file ") + rfile.fileName());
+        removeMsg.setWindowTitle(QMessageBox::tr("Error"));
+        removeMsg.setText(QMessageBox::tr("Cannot delete file %1.").arg(rfile.fileName()));
         removeMsg.setWindowModality(Qt::WindowModal);
         removeMsg.exec();
     }