Tr: Re-fix plurals

The number for the plural must be given as the 3rd argument
to the tr() call, not as an arg().

Amends 1359e9c84f

Change-Id: I45241a6acd82041c320bbe476cd2b4cc92247ef3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Eike Ziller
2023-10-18 09:42:15 +02:00
parent a253a2aa95
commit 8f3e77a3ae
3 changed files with 10 additions and 7 deletions

View File

@@ -721,10 +721,11 @@ expected_str<qint64> DesktopDeviceFileAccess::writeFileContents(const FilePath &
qint64 res = file.write(data);
if (res != data.size())
return make_unexpected(
Tr::tr("Could not write to file \"%1\" (only %2 of %n byte(s) written).")
Tr::tr("Could not write to file \"%1\" (only %2 of %n byte(s) written).",
nullptr,
data.size())
.arg(filePath.toUserOutput())
.arg(res)
.arg(data.size()));
.arg(res));
return res;
}