forked from qt-creator/qt-creator
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:
committed by
Leena Miettinen
parent
b5869e97e9
commit
da1c4df7b1
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user