UI text: Add dots to ends of messages

Use consistent wording for things that failed.

Change-Id: If8593077352b48418ca739d6933beef588057ac1
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Leena Miettinen
2024-06-25 10:49:24 +02:00
parent 6ca917c123
commit a9a611e21e
3 changed files with 6 additions and 6 deletions

View File

@@ -527,14 +527,14 @@ bool PresetsParser::parse(const Utils::FilePath &jsonFile, QString &errorMessage
if (!parseBuildPresets(root.value("buildPresets"), if (!parseBuildPresets(root.value("buildPresets"),
m_presetsData.buildPresets, m_presetsData.buildPresets,
jsonFile.parentDir())) { jsonFile.parentDir())) {
errorMessage = ::CMakeProjectManager::Tr::tr("Invalid \"buildPresets\" section in %1 file") errorMessage = ::CMakeProjectManager::Tr::tr("Invalid \"buildPresets\" section in %1 file.")
.arg(jsonFile.fileName()); .arg(jsonFile.fileName());
return false; return false;
} }
// optional // optional
if (!parseVendor(root.value("vendor"), m_presetsData.vendor)) { if (!parseVendor(root.value("vendor"), m_presetsData.vendor)) {
errorMessage = ::CMakeProjectManager::Tr::tr("Invalid \"vendor\" section in %1 file") errorMessage = ::CMakeProjectManager::Tr::tr("Invalid \"vendor\" section in %1 file.")
.arg(jsonFile.fileName()); .arg(jsonFile.fileName());
} }

View File

@@ -67,12 +67,12 @@ DeployMcuProcessStep::DeployMcuProcessStep(ProjectExplorer::BuildStepList *bc, I
, m_tmpDir() , m_tmpDir()
{ {
if (!buildSystem()) { if (!buildSystem()) {
showError(QmlProjectManager::Tr::tr("Failed to find valid build system")); showError(QmlProjectManager::Tr::tr("Cannot find a valid build system."));
return; return;
} }
if (!m_tmpDir.isValid()) { if (!m_tmpDir.isValid()) {
showError(QmlProjectManager::Tr::tr("Failed to create valid build directory")); showError(QmlProjectManager::Tr::tr("Cannot create a valid build directory."));
return; return;
} }
@@ -193,7 +193,7 @@ void MCUBuildStepFactory::updateDeployStep(ProjectExplorer::Target *target, bool
stepList->appendStep(DeployMcuProcessStep::id); stepList->appendStep(DeployMcuProcessStep::id);
} else { } else {
DeployMcuProcessStep::showError( DeployMcuProcessStep::showError(
QmlProjectManager::Tr::tr("Failed to find valid Qt for MCUs kit")); QmlProjectManager::Tr::tr("Cannot find a valid Qt for MCUs kit."));
} }
} else { } else {
if (!step) if (!step)

View File

@@ -320,7 +320,7 @@ void McuSupportOptionsWidget::apply()
QMessageBox warningPopup(QMessageBox::Icon::Warning, QMessageBox warningPopup(QMessageBox::Icon::Warning,
Tr::tr("Warning"), Tr::tr("Warning"),
Tr::tr("Unable to apply changes in Devices > MCU."), Tr::tr("Cannot apply changes in Devices > MCU."),
QMessageBox::Ok, QMessageBox::Ok,
this); this);