Utils: Small string fixes

Change-Id: I2fd6bf14b1cb35f61ced841e3deea011fd54ff03
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Eike Ziller
2024-02-26 09:37:00 +01:00
parent 5406f11a2b
commit 462caec278
2 changed files with 3 additions and 4 deletions

View File

@@ -568,8 +568,8 @@ static bool checkToRefuseRemoveStandardLocationDirectory(const QString &dirPath,
{
if (QStandardPaths::standardLocations(location).contains(dirPath)) {
if (error) {
*error = Tr::tr("Refusing to remove your %1 directory.").arg(
QStandardPaths::displayName(location));
*error = Tr::tr("Refusing to remove the standard directory \"%1\".")
.arg(QStandardPaths::displayName(location));
}
return false;
}

View File

@@ -1665,8 +1665,7 @@ QString Process::exitMessage(const CommandLine &command, ProcessResult result,
case ProcessResult::Canceled:
// TODO: We might want to format it nicely when bigger than 1 second, e.g. 1,324 s.
// Also when it's bigger than 1 minute, 1 hour, etc...
return Tr::tr("The command \"%1\" was canceled after (%2 ms).")
.arg(cmd).arg(duration.count());
return Tr::tr("The command \"%1\" was canceled after %2 ms.").arg(cmd).arg(duration.count());
}
return {};
}