diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-31 14:31:51 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-31 15:02:12 +0200 |
commit | 2231d4966430caa4e1c0d56f0b2c6cd2533e7ba4 (patch) | |
tree | 1f15f1dfdab405294de5f5ceb8d2507cf71daabd /src/lib/corelib/language | |
parent | c585823afd68fcee4e1bc61ba87adefd8c7395b1 (diff) |
Avoid contractions in user-visible messages.
Change-Id: I68685166bfaa873f1e5995c7d507afef45b03055
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib/language')
-rw-r--r-- | src/lib/corelib/language/itemreader.cpp | 2 | ||||
-rw-r--r-- | src/lib/corelib/language/itemreaderastvisitor.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/language/itemreader.cpp b/src/lib/corelib/language/itemreader.cpp index 911c49fdf..18d491b73 100644 --- a/src/lib/corelib/language/itemreader.cpp +++ b/src/lib/corelib/language/itemreader.cpp @@ -161,7 +161,7 @@ ItemReaderResult ItemReader::internalReadFile(const QString &filePath) } else { QFile file(filePath); if (Q_UNLIKELY(!file.open(QFile::ReadOnly))) - throw ErrorInfo(Tr::tr("Couldn't open '%1'.").arg(filePath)); + throw ErrorInfo(Tr::tr("Cannot open '%1'.").arg(filePath)); m_filesRead.insert(filePath); const QString code = QTextStream(&file).readAll(); diff --git a/src/lib/corelib/language/itemreaderastvisitor.cpp b/src/lib/corelib/language/itemreaderastvisitor.cpp index 690a944db..4cddd0dc0 100644 --- a/src/lib/corelib/language/itemreaderastvisitor.cpp +++ b/src/lib/corelib/language/itemreaderastvisitor.cpp @@ -193,7 +193,7 @@ bool ItemReaderASTVisitor::visit(AST::UiImportList *uiImportList) } if (Q_UNLIKELY(importAsNames.contains(as))) { - throw ErrorInfo(Tr::tr("Can't import into the same name more than once."), + throw ErrorInfo(Tr::tr("Cannot import into the same name more than once."), toCodeLocation(import->importIdToken)); } if (Q_UNLIKELY(JsExtensions::hasExtension(as))) { @@ -208,7 +208,7 @@ bool ItemReaderASTVisitor::visit(AST::UiImportList *uiImportList) QFileInfo fi(filePath); if (Q_UNLIKELY(!fi.exists())) - throw ErrorInfo(Tr::tr("Can't find imported file %0.").arg(filePath), + throw ErrorInfo(Tr::tr("Cannot find imported file %0.").arg(filePath), CodeLocation(m_file->filePath(), import->fileNameToken.startLine, import->fileNameToken.startColumn)); filePath = fi.canonicalFilePath(); |