forked from qt-creator/qt-creator
Add full stops to various error messages
Change-Id: Ic4e07c5063a2e42af643faa4a5acb8445b12d6a1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -61,7 +61,7 @@ expected_str<qint64> ProcessStubCreator::startStubProcess(const ProcessSetupData
|
||||
|
||||
QTemporaryFile *shFile = new QTemporaryFile(process);
|
||||
QTC_ASSERT(shFile->open(),
|
||||
return make_unexpected(Tr::tr("Failed to open temporary script file")));
|
||||
return make_unexpected(Tr::tr("Failed to open temporary script file.")));
|
||||
shFile->write(shScript.toUtf8());
|
||||
shFile->close();
|
||||
|
||||
@@ -79,7 +79,7 @@ expected_str<qint64> ProcessStubCreator::startStubProcess(const ProcessSetupData
|
||||
|
||||
if (!process->waitForStarted()) {
|
||||
return make_unexpected(
|
||||
Tr::tr("Failed to start terminal process: \"%1\"").arg(process->errorString()));
|
||||
Tr::tr("Failed to start terminal process: \"%1\".").arg(process->errorString()));
|
||||
}
|
||||
|
||||
QObject::connect(process, &Process::done, m_interface, &TerminalInterface::onStubExited);
|
||||
@@ -115,7 +115,7 @@ expected_str<qint64> ProcessStubCreator::startStubProcess(const ProcessSetupData
|
||||
process->waitForStarted();
|
||||
if (process->error() != QProcess::UnknownError) {
|
||||
return make_unexpected(
|
||||
Tr::tr("Failed to start terminal process: \"%1\"").arg(process->errorString()));
|
||||
Tr::tr("Failed to start terminal process: \"%1\".").arg(process->errorString()));
|
||||
}
|
||||
|
||||
qint64 pid = process->processId();
|
||||
|
@@ -132,7 +132,7 @@ FileStreamHandle FileStreamerManager::copy(const FilePath &source, const FilePat
|
||||
if (streamer->result() == StreamResult::FinishedWithSuccess)
|
||||
cont({});
|
||||
else
|
||||
cont(make_unexpected(Tr::tr("Failed copying file")));
|
||||
cont(make_unexpected(Tr::tr("Failed copying file.")));
|
||||
};
|
||||
return execute(onSetup, onDone, context);
|
||||
}
|
||||
@@ -156,7 +156,7 @@ FileStreamHandle FileStreamerManager::read(const FilePath &source, QObject *cont
|
||||
if (streamer->result() == StreamResult::FinishedWithSuccess)
|
||||
cont(streamer->readData());
|
||||
else
|
||||
cont(make_unexpected(Tr::tr("Failed reading file")));
|
||||
cont(make_unexpected(Tr::tr("Failed reading file.")));
|
||||
};
|
||||
return execute(onSetup, onDone, context);
|
||||
}
|
||||
@@ -182,7 +182,7 @@ FileStreamHandle FileStreamerManager::write(const FilePath &destination, const Q
|
||||
if (streamer->result() == StreamResult::FinishedWithSuccess)
|
||||
cont(0); // TODO: return write count?
|
||||
else
|
||||
cont(make_unexpected(Tr::tr("Failed writing file")));
|
||||
cont(make_unexpected(Tr::tr("Failed writing file.")));
|
||||
};
|
||||
return execute(onSetup, onDone, context);
|
||||
}
|
||||
|
@@ -551,7 +551,7 @@ void SymbolSupport::handleRenameResponse(Core::SearchResult *search,
|
||||
if (error.has_value()) {
|
||||
errorMessage = error->toString();
|
||||
if (errorMessage.contains("Cannot rename symbol: new name is the same as the old name"))
|
||||
errorMessage = Tr::tr("Start typing to see replacements"); // clangd optimization
|
||||
errorMessage = Tr::tr("Start typing to see replacements."); // clangd optimization
|
||||
else
|
||||
m_client->log(*error);
|
||||
}
|
||||
|
@@ -45,10 +45,10 @@ protected:
|
||||
m_source.asyncCopy(m_target, this, [this](const expected_str<void> &cont) {
|
||||
if (!cont) {
|
||||
addOutput(cont.error(), OutputFormat::ErrorMessage);
|
||||
addOutput(Tr::tr("Copying failed"), OutputFormat::ErrorMessage);
|
||||
addOutput(Tr::tr("Copying failed."), OutputFormat::ErrorMessage);
|
||||
emit finished(false);
|
||||
} else {
|
||||
addOutput(Tr::tr("Copying finished"), OutputFormat::NormalMessage);
|
||||
addOutput(Tr::tr("Copying finished."), OutputFormat::NormalMessage);
|
||||
emit finished(true);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user