aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljssimplereader.cpp
diff options
context:
space:
mode:
authorLeena Miettinen <[email protected]>2013-02-08 17:12:45 +0100
committerThomas Hartmann <[email protected]>2013-02-11 15:39:07 +0100
commit62f13deaf3843a727a9ea7427c21212f5aa50c9c (patch)
tree7970bba6a707a1f6896b0ef724f7521dbe7a354f /src/libs/qmljs/qmljssimplereader.cpp
parent3e1f2521cc4ae0a9ad3a40ee1c91957c538f763e (diff)
UI text: fix qmljs messages
Added punctuation. Change-Id: I737a66bb505221ff92d295c4e4b30446a099a15b Reviewed-by: Thomas Hartmann <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljssimplereader.cpp')
-rw-r--r--src/libs/qmljs/qmljssimplereader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/qmljs/qmljssimplereader.cpp b/src/libs/qmljs/qmljssimplereader.cpp
index 0c37e143b30..9ed2b6f9564 100644
--- a/src/libs/qmljs/qmljssimplereader.cpp
+++ b/src/libs/qmljs/qmljssimplereader.cpp
@@ -129,7 +129,7 @@ bool SimpleAbstractStreamReader::readFile(const QString &fileName)
file.close();
return readFromSource(QString::fromLocal8Bit(source));
}
- addError(tr("Cannot find file %1").arg(fileName));
+ addError(tr("Cannot find file %1.").arg(fileName));
return false;
}
@@ -176,13 +176,13 @@ AST::SourceLocation SimpleAbstractStreamReader::currentSourceLocation() const
bool SimpleAbstractStreamReader::readDocument(AST::UiProgram *ast)
{
if (!ast) {
- addError(tr("Could not parse document"));
+ addError(tr("Could not parse document."));
return false;
}
AST::UiObjectDefinition *uiObjectDefinition = AST::cast<AST::UiObjectDefinition *>(ast->members->member);
if (!uiObjectDefinition) {
- addError(tr("Expected document to contain a single object definition"));
+ addError(tr("Expected document to contain a single object definition."));
return false;
}
readChild(uiObjectDefinition);
@@ -246,7 +246,7 @@ QVariant SimpleAbstractStreamReader::parsePropertyScriptBinding(AST::UiScriptBin
AST::ExpressionStatement *expStmt = AST::cast<AST::ExpressionStatement *>(uiScriptBinding->statement);
if (!expStmt) {
- addError(tr("Expected expression statement after colon"), uiScriptBinding->statement->firstSourceLocation());
+ addError(tr("Expected expression statement after colon."), uiScriptBinding->statement->firstSourceLocation());
return QVariant();
}
@@ -282,7 +282,7 @@ QVariant SimpleAbstractStreamReader::parsePropertyExpression(AST::ExpressionNode
if (numericLiteral)
return numericLiteral->value;
- addError(tr("Expected expression statement to be a literal"), expressionNode->firstSourceLocation());
+ addError(tr("Expected expression statement to be a literal."), expressionNode->firstSourceLocation());
return QVariant();
}
@@ -340,7 +340,7 @@ void SimpleReader::propertyDefinition(const QString &name, const QVariant &value
qDebug() << "SimpleReader::propertyDefinition()" << m_currentNode.data()->name() << name << value;
if (m_currentNode.data()->propertyNames().contains(name))
- addError(tr("Property is defined twice"), currentSourceLocation());
+ addError(tr("Property is defined twice."), currentSourceLocation());
m_currentNode.data()->setProperty(name, value);
}