Use plurals

This commit is contained in:
Michał Walenciak 2023-11-03 20:43:12 +01:00 committed by Jonas Kvinge
parent 83bc8d9e86
commit 1b6b5f9afa
2 changed files with 2 additions and 3 deletions

View File

@ -449,8 +449,7 @@ void PlaylistManager::UpdateSummaryText() {
nanoseconds = current()->GetTotalLength();
}
// TODO: Make the plurals translatable
summary += tracks == 1 ? tr("1 track") : tr("%1 tracks").arg(tracks);
summary += tr("%n track(s)", "", tracks);
if (nanoseconds > 0) {
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";

View File

@ -249,7 +249,7 @@ void Queue::UpdateSummaryText() {
int tracks = ItemCount();
quint64 nanoseconds = GetTotalLength();
summary += tracks == 1 ? tr("1 track") : tr("%1 tracks").arg(tracks);
summary += tr("%n track(s)", "", tracks);
if (nanoseconds > 0) {
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";