TD: Fix translation of pending updates string

Switch to %n form so translators can adjust based on the number. Also allows English adaptation to plural/singular, if desired.
This commit is contained in:
Chris Hennes
2024-03-04 22:25:29 -06:00
committed by WandererFan
parent cd1c697765
commit 6b2d7ac333

View File

@@ -432,10 +432,7 @@ bool TaskSectionView::apply(bool forceUpdate)
if (!ui->cbLiveUpdate->isChecked() && !forceUpdate) {
//nothing to do
m_applyDeferred++;
QString msgLiteral =
QString::fromUtf8(QT_TRANSLATE_NOOP("TaskPojGroup", " updates pending"));
QString msgNumber = QString::number(m_applyDeferred);
ui->lPendingUpdates->setText(msgNumber + msgLiteral);
ui->lPendingUpdates->setText(tr("%n update(s) pending", "", m_applyDeferred));
return false;
}