Skip to content
Snippets Groups Projects
Commit da1c4df7 authored by Leena Miettinen's avatar Leena Miettinen Committed by Leena Miettinen
Browse files

GenericHighlighter: add full stops to end of messages


Start messages with an initial capital letter.

Change-Id: Ie22a5ecffd8a7dc9dc2bb45d9e3a03eb30775744
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent b5869e97
No related branches found
No related tags found
No related merge requests found
......@@ -48,13 +48,13 @@ QSharedPointer<Element> createHelper(const QString &name, Container &container)
{
if (name.isEmpty()) {
throw HighlighterException(
QCoreApplication::translate("GenericHighlighter", "Element name is empty"));
QCoreApplication::translate("GenericHighlighter", "Element name is empty."));
}
if (container.contains(name)) {
throw HighlighterException(
QCoreApplication::translate("GenericHighlighter",
"Duplicate element name \"%1\"").arg(name));
"Duplicate element name \"%1\".").arg(name));
}
return container.insert(name, QSharedPointer<Element>(new Element)).value();
......@@ -68,7 +68,7 @@ findHelper(const QString &name, const Container &container)
if (it == container.end()) {
throw HighlighterException(
QCoreApplication::translate("GenericHighlighter",
"name \"%1\" not found").arg(name));
"Name \"%1\" not found.").arg(name));
}
return it.value();
......
......@@ -396,7 +396,7 @@ void Highlighter::changeContext(const QString &contextName,
for (int i = 0; i < list.size(); ++i) {
if (m_contexts.isEmpty()) {
throw HighlighterException(
QCoreApplication::translate("GenericHighlighter", "Reached empty context"));
QCoreApplication::translate("GenericHighlighter", "Reached empty context."));
}
m_contexts.pop_back();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment