Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7a513820
Commit
7a513820
authored
Apr 28, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3438 from edx/sarina/fix-video-i18n
Don't scrape unnecessary strings for i18n
parents
e4c5eb4d
dac62703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
common/lib/xmodule/xmodule/video_module/video_xfields.py
+6
-2
lms/templates/video.html
+2
-2
No files found.
common/lib/xmodule/xmodule/video_module/video_xfields.py
View file @
7a513820
...
...
@@ -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'
,
)
...
...
lms/templates/video.html
View file @
7a513820
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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