Skip to content

Commit 517869f

Browse files
committed
Revised the condition for enabling english subtitles
1 parent 863e3f7 commit 517869f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kalite/distributed/static/js/distributed/video/hbtemplates/video-player.handlebars

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<div id="video-player"{{#unless content_urls }} class="client-online-only"{{/unless}}>
22
<video class="video-player video-js vjs-default-skin vjs-fullscreen" id="{{ random_id }}">
33
<source src="{{ content_urls.stream }}" type="{{ content_urls.stream_type }}" />
4-
{{#current_language_is "en"}}
54
{{#ifcond translated_youtube_lang "==" "en"}}
65
{{#each subtitle_urls}}
7-
<track kind="captions" src="{{ this.url }}" srclang="{{ this.code }}" label="{{ this.name }}" {{#ifcond this.code "==" "en"}}default{{/ifcond}}/>
6+
<track kind="captions" src="{{ this.url }}" srclang="{{ this.code }}" label="{{ this.name }}" {{#current_language_is this.code}}default{{/current_language_is}}/>
87
{{/each}}
98
{{/ifcond}}
10-
{{/current_language_is}}
119
</video>
1210
</div>
1311

0 commit comments

Comments
 (0)