forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user