aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2017-04-05 16:04:21 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2017-04-05 14:18:13 +0000
commit4a6d387cb7b785fbbe819e26c2e5a5a65c1e2831 (patch)
tree68774eb265fcd07b5d6a464c42303319bc94a966 /src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
parentb25ae51163034381175bc157400e86e3291ea6cb (diff)
SCXML editor: Fix UI text
... capitalization, punctualization, and grammar Change-Id: I15205b899387e8a91529c3a6b6a2e81cf4315a4a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp')
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
index ed4ce3e507..4b7d61175c 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
@@ -262,16 +262,16 @@ void ScxmlDocument::initErrorMessage(const QXmlStreamReader &xml, QIODevice *io)
QString errorString;
switch (xml.error()) {
case QXmlStreamReader::Error::UnexpectedElementError:
- errorString = tr("Unexpected element");
+ errorString = tr("Unexpected element.");
break;
case QXmlStreamReader::Error::NotWellFormedError:
- errorString = tr("Not well formed");
+ errorString = tr("Not well formed.");
break;
case QXmlStreamReader::Error::PrematureEndOfDocumentError:
- errorString = tr("Premature end of document");
+ errorString = tr("Premature end of document.");
break;
case QXmlStreamReader::Error::CustomError:
- errorString = tr("Custom error");
+ errorString = tr("Custom error.");
break;
default:
break;
@@ -299,7 +299,7 @@ bool ScxmlDocument::pasteData(const QByteArray &data, const QPointF &minPos, con
if (!m_currentTag) {
m_hasError = true;
- m_lastError = tr("Current tag not selected");
+ m_lastError = tr("Current tag is not selected.");
return false;
}
@@ -310,7 +310,7 @@ bool ScxmlDocument::pasteData(const QByteArray &data, const QPointF &minPos, con
}
bool ok = true;
- m_undoStack->beginMacro(tr("Paste item(s)"));
+ m_undoStack->beginMacro(tr("Paste items"));
QByteArray d(data);
QBuffer buffer(&d);
@@ -458,7 +458,7 @@ bool ScxmlDocument::save(const QString &fileName)
}
file.close();
if (!ok)
- m_lastError = tr("Cannot save xml to the file %1.").arg(fileName);
+ m_lastError = tr("Cannot save XML to the file %1.").arg(fileName);
} else {
ok = false;
m_lastError = tr("Cannot open file %1.").arg(fileName);