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

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