| Index: ui/file_manager/video_player/js/media_controls.js
|
| diff --git a/ui/file_manager/video_player/js/media_controls.js b/ui/file_manager/video_player/js/media_controls.js
|
| index 33745c75cf678e65c5036b96762e535210ce3e6b..9111e977c286613be9fcda82471ba5a4e192f568 100644
|
| --- a/ui/file_manager/video_player/js/media_controls.js
|
| +++ b/ui/file_manager/video_player/js/media_controls.js
|
| @@ -536,8 +536,6 @@ MediaControls.prototype.initSubtitlesButton = function() {
|
| this.subtitlesTrack_ = null;
|
| this.subtitlesButton_ =
|
| this.createButton('subtitles', this.onSubtitlesButtonClicked_.bind(this));
|
| - this.subtitlesButton_.setAttribute('aria-label',
|
| - str('VIDEO_PLAYER_SUBTITLES_BUTTON_LABEL'));
|
| };
|
|
|
| /**
|
| @@ -562,9 +560,13 @@ MediaControls.prototype.toggleSubtitlesMode_ = function(on) {
|
| if (on) {
|
| this.subtitlesTrack_.mode = 'showing';
|
| this.subtitlesButton_.setAttribute('showing', '');
|
| + this.subtitlesButton_.setAttribute('aria-label',
|
| + str('VIDEO_PLAYER_DISABLE_SUBTITLES_BUTTON_LABEL'));
|
| } else {
|
| this.subtitlesTrack_.mode = 'hidden';
|
| this.subtitlesButton_.removeAttribute('showing');
|
| + this.subtitlesButton_.setAttribute('aria-label',
|
| + str('VIDEO_PLAYER_ENABLE_SUBTITLES_BUTTON_LABEL'));
|
| }
|
| };
|
|
|
|
|