mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-20 13:39:00 +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;
|
QString summary;
|
||||||
if (selected > 1) {
|
if (selected > 1) {
|
||||||
summary += tr("%1 selected of").arg(selected) + " ";
|
summary += tr("%L1 selected of").arg(selected) + " ";
|
||||||
} else {
|
} else {
|
||||||
nanoseconds = current()->GetTotalLength();
|
nanoseconds = current()->GetTotalLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Make the plurals translatable
|
// 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)
|
if (nanoseconds)
|
||||||
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";
|
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";
|
||||||
|
Loading…
Reference in New Issue
Block a user