Use plurals
This commit is contained in:
parent
83bc8d9e86
commit
1b6b5f9afa
|
@ -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) + " ]";
|
||||
|
|
|
@ -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) + " ]";
|
||||
|
|
Loading…
Reference in New Issue