GenericHighlighter: add full stops to end of messages

Start messages with an initial capital letter.

Change-Id: Ie22a5ecffd8a7dc9dc2bb45d9e3a03eb30775744
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Leena Miettinen
2015-03-16 16:05:01 +01:00
committed by Leena Miettinen
parent b5869e97e9
commit da1c4df7b1
2 changed files with 4 additions and 4 deletions

View File

@@ -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();

View File

@@ -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();
}