CheatsManager: Make use of plural variant of tr()

Allows translators to specify different translations if the target
languages have pluralization rules that differ from English.
This commit is contained in:
Lioncash 2021-08-24 10:14:56 -04:00
parent e7a30dd468
commit 70399955a0

View file

@ -648,7 +648,7 @@ void CheatsManager::Update()
return; return;
} }
m_result_label->setText(tr("%1 Match(es)").arg(m_results.size())); m_result_label->setText(tr("%n Match(es)", "", static_cast<int>(m_results.size())));
m_match_table->setRowCount(static_cast<int>(m_results.size())); m_match_table->setRowCount(static_cast<int>(m_results.size()));
if (m_results.empty()) if (m_results.empty())