mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 05:21:57 +01:00
Localize song count in playlist
Use %Lx to localize number formatting. Reference: https://doc.qt.io/qt-5/qtquick-internationalization.html#5-use-lx-so-numbers-are-localized
This commit is contained in:
parent
7b94309827
commit
f779652aa2
@ -436,13 +436,13 @@ void PlaylistManager::UpdateSummaryText() {
|
||||
|
||||
QString summary;
|
||||
if (selected > 1) {
|
||||
summary += tr("%1 selected of").arg(selected) + " ";
|
||||
summary += tr("%L1 selected of").arg(selected) + " ";
|
||||
} else {
|
||||
nanoseconds = current()->GetTotalLength();
|
||||
}
|
||||
|
||||
// TODO: Make the plurals translatable
|
||||
summary += tracks == 1 ? tr("1 track") : tr("%1 tracks").arg(tracks);
|
||||
summary += tracks == 1 ? tr("1 track") : tr("%L1 tracks").arg(tracks);
|
||||
|
||||
if (nanoseconds)
|
||||
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";
|
||||
|
Loading…
Reference in New Issue
Block a user