Tr: Fix some plurals

Change-Id: I9d7a52a64536e6e1c0a9da4f3cb2f3a116afb6cd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2023-10-16 10:08:48 +02:00
parent abeb2287ce
commit 1359e9c84f
3 changed files with 6 additions and 4 deletions

View File

@@ -721,7 +721,7 @@ 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 %3 bytes written).")
Tr::tr("Could not write to file \"%1\" (only %2 of %n byte(s) written).")
.arg(filePath.toUserOutput())
.arg(res)
.arg(data.size()));

View File

@@ -327,7 +327,7 @@ void BoostTestOutputReader::processOutputLine(const QByteArray &outputLine)
BoostTestResult result(id(), {}, m_projectFile);
const int failed = match.captured(1).toInt();
const int fatals = m_summary.value(ResultType::MessageFatal);
QString txt = Tr::tr("%1 failures detected in %2.").arg(failed).arg(match.captured(3));
QString txt = Tr::tr("%n failure(s) detected in %2.").arg(failed).arg(match.captured(3));
const int passed = qMax(0, m_testCaseCount - failed);
if (m_testCaseCount != -1)
txt.append(' ').append(Tr::tr("%1 tests passed.").arg(passed));

View File

@@ -567,8 +567,10 @@ static void checkNextFunctionForUnused(
if (!search || findRefsFuture->isCanceled())
return;
const int newProgress = findRefsFuture->progressValue() + 1;
findRefsFuture->setProgressValueAndText(newProgress, Tr::tr("Checked %1 of %2 functions")
.arg(newProgress).arg(findRefsFuture->progressMaximum()));
findRefsFuture->setProgressValueAndText(newProgress,
Tr::tr("Checked %1 of %n function(s)")
.arg(newProgress)
.arg(findRefsFuture->progressMaximum()));
QVariantMap data = search->userData().toMap();
QVariant &activeLinks = data["active"];
QVariantList activeLinksList = activeLinks.toList();