Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions common/lib/xmodule/xmodule/video_module/video_xfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

from xmodule.fields import RelativeTime

# Make '_' a no-op so we can scrape strings
_ = lambda text: text


class VideoFields(object):
"""Fields for `VideoModule` and `VideoDescriptor`."""
Expand Down Expand Up @@ -121,8 +124,9 @@ class VideoFields(object):
help="Transcript file format to download by user.",
scope=Scope.preferences,
values=[
{"display_name": "SubRip (.srt) file", "value": "srt"},
{"display_name": "Text (.txt) file", "value": "txt"}
# Translators: This is a type of file used for captioning in the video player.
{"display_name": _("SubRip (.srt) file"), "value": "srt"},
{"display_name": _("Text (.txt) file"), "value": "txt"}
],
default='srt',
)
Expand Down
4 changes: 2 additions & 2 deletions lms/templates/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ <h3 class="hidden">${_('ERROR: No playable video sources found!')}</h3>
% else:
<li class="a11y-menu-item">
% endif
<a class="a11y-menu-item-link" href="#${item['value']}" title="${_('{file_format}'.format(file_format=item['display_name']))}" data-value="${item['value']}">
${_('{file_format}'.format(file_format=item['display_name']))}
<a class="a11y-menu-item-link" href="#${item['value']}" title="${_(item['display_name'])}" data-value="${item['value']}">
${_(item['display_name'])}
</a>
</li>
% endfor
Expand Down