aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/language')
-rw-r--r--src/lib/corelib/language/itemreader.cpp2
-rw-r--r--src/lib/corelib/language/itemreaderastvisitor.cpp4
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();