# HG changeset patch # User Wuzzy # Date 1506005587 -7200 # Node ID faed28f815c78f8e055eab359da23b5c8a06e65b # Parent 821732e6413df98b1f68dbb83bac70cd7f21a2d9 Simplify error messages in record play page and fix poor grammar. diff -r 821732e6413d -r faed28f815c7 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(); }