Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
a91c79cf
Commit
a91c79cf
authored
Sep 29, 2015
by
Felix Paul Kühne
Browse files
playback: correctly localize the 'Disable' fake track selection item (closes #14594)
parent
4c8e7c60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Resources/en.lproj/Localizable.strings
View file @
a91c79cf
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
Sources/VLCMovieViewController.m
View file @
a91c79cf
...
...
@@ -1169,20 +1169,28 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
if
(
_switchingTracksNotChapters
==
YES
)
{
NSArray
*
indexArray
;
NSString
*
trackName
;
if
([
mediaPlayer
numberOfAudioTracks
]
>
2
&&
section
==
0
)
{
indexArray
=
mediaPlayer
.
audioTrackIndexes
;
if
([
indexArray
indexOfObject
:[
NSNumber
numberWithInt
:
mediaPlayer
.
currentAudioTrackIndex
]]
==
row
)
cellShowsCurrentTrack
=
YES
;
cell
.
textLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
mediaPlayer
.
audioTrackNames
[
row
]
]
;
trackName
=
mediaPlayer
.
audioTrackNames
[
row
];
}
else
{
indexArray
=
mediaPlayer
.
videoSubTitlesIndexes
;
if
([
indexArray
indexOfObject
:[
NSNumber
numberWithInt
:
mediaPlayer
.
currentVideoSubTitleIndex
]]
==
row
)
cellShowsCurrentTrack
=
YES
;
cell
.
textLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
mediaPlayer
.
videoSubTitlesNames
[
row
]];
trackName
=
mediaPlayer
.
videoSubTitlesNames
[
row
];
}
if
(
trackName
!=
nil
)
{
if
([
trackName
isEqualToString
:
@"Disable"
])
cell
.
textLabel
.
text
=
NSLocalizedString
(
@"DISABLE_LABEL"
,
nil
);
else
cell
.
textLabel
.
text
=
trackName
;
}
}
else
{
if
([
mediaPlayer
numberOfTitles
]
>
1
&&
section
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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