Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
dac62703
Commit
dac62703
authored
10 years ago
by
Sarina Canelake
Browse files
Options
Downloads
Patches
Plain Diff
Fix i18n of video player string
parent
0a022e13
No related branches found
Branches containing commit
Tags
release-2018-10-29-12.45
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/video_module/video_xfields.py
+6
-2
6 additions, 2 deletions
common/lib/xmodule/xmodule/video_module/video_xfields.py
lms/templates/video.html
+2
-2
2 additions, 2 deletions
lms/templates/video.html
with
8 additions
and
4 deletions
common/lib/xmodule/xmodule/video_module/video_xfields.py
+
6
−
2
View file @
dac62703
...
...
@@ -7,6 +7,9 @@ from xblock.fields import Scope, String, Float, Boolean, List, Dict
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`.
"""
...
...
@@ -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
'
,
)
...
...
This diff is collapsed.
Click to expand it.
lms/templates/video.html
+
2
−
2
View file @
dac62703
...
...
@@ -125,8 +125,8 @@
% 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment