Tr: Wrap file paths with ""

Change-Id: Iee0e941ff503ff485e8e9c0d9fe3e52eea9042d5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Eike Ziller
2023-05-26 11:29:50 +02:00
parent b7f8143728
commit f2c1455025
24 changed files with 103 additions and 109 deletions

View File

@@ -197,15 +197,15 @@ expected_str<void> DeviceFileAccess::copyRecursively(const FilePath &src,
const FilePath &target) const
{
if (!src.isDir()) {
return make_unexpected(Tr::tr("Cannot copy from %1, it is not a directory.")
.arg(src.toUserOutput())
.arg(target.toUserOutput()));
return make_unexpected(
Tr::tr("Cannot copy from \"%1\", it is not a directory.").arg(src.toUserOutput()));
}
if (!target.ensureWritableDir()) {
return make_unexpected(Tr::tr("Cannot copy %1 to %2, it is not a writable directory.")
.arg(src.toUserOutput())
.arg(target.toUserOutput()));
return make_unexpected(
Tr::tr("Cannot copy \"%1\" to \"%2\", it is not a writable directory.")
.arg(src.toUserOutput())
.arg(target.toUserOutput()));
}
#ifdef UTILS_STATIC_LIBRARY