Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
af510a65
Commit
af510a65
authored
Nov 23, 2021
by
Albert Astals Cid
Browse files
Improve MediaPlayListView text
parent
ac5bf264
Pipeline
#102963
passed with stage
in 19 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/qml/MediaPlayListView.qml
View file @
af510a65
...
...
@@ -495,12 +495,14 @@ Kirigami.Page {
LabelWithToolTip
{
text
:
{
if
(
ElisaApplication
.
mediaPlayListProxyModel
.
remainingTracks
===
-
1
)
{
return
i18np
(
"
%1 track
"
,
"
%1 tracks
"
,
(
ElisaApplication
.
mediaPlayListProxyModel
?
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
:
0
)
);
return
i18np
(
"
%1 track
"
,
"
%1 tracks
"
,
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
);
}
else
{
if
(
(
ElisaApplication
.
mediaPlayListProxyModel
?
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
:
0
)
==
1
)
{
return
i18n
(
"
%
1 track
"
,
ElisaApplication
.
mediaPlayListProxyModel
?
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
:
0
);
if
(
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
==
1
)
{
return
i18n
(
"
1 track
"
);
}
else
{
return
i18n
(
"
%1 tracks (%2 remaining)
"
,
(
ElisaApplication
.
mediaPlayListProxyModel
?
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
:
0
),
ElisaApplication
.
mediaPlayListProxyModel
.
remainingTracks
);
var
nTracks
=
i18np
(
"
%1 track
"
,
"
%1 tracks
"
,
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
);
var
nRemaining
=
i18ncp
(
"
number of tracks remaining
"
,
"
%1 remaining
"
,
"
%1 remaining
"
,
ElisaApplication
.
mediaPlayListProxyModel
.
remainingTracks
);
return
i18nc
(
"
%1 is the translation of track[s], %2 is the translation of remaining
"
,
"
%1 (%2)
"
,
nTracks
,
nRemaining
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment