forked from 0x2620/oxjs
wrap more strings in Ox._
This commit is contained in:
parent
42cb002c5f
commit
535c04d386
5 changed files with 44 additions and 44 deletions
|
|
@ -1891,9 +1891,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.$settings.hide();
|
||||
if (!$target.is('.OxLine') && !$target.is('.OxSpace')) {
|
||||
title = $(e.target).parent().children()[0].innerHTML;
|
||||
if (title == 'Download') {
|
||||
if (title == Ox._('Download')) {
|
||||
that.triggerEvent('download');
|
||||
} else if (title == 'Subtitles') {
|
||||
} else if (title == Ox._('Subtitles')) {
|
||||
toggleSubtitles();
|
||||
} else if (isResolution(title)) {
|
||||
resolution = parseInt(title, 10);
|
||||
|
|
@ -1916,7 +1916,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
var children = $(this).children(),
|
||||
title = children[0].innerHTML,
|
||||
checked = (
|
||||
title == 'Subtitles'
|
||||
title == Ox.('Subtitles')
|
||||
&& self.options.enableSubtitles
|
||||
) || (
|
||||
isResolution(title)
|
||||
|
|
@ -1939,7 +1939,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}),
|
||||
items = [{
|
||||
disabled: true,
|
||||
title: 'Resolution'
|
||||
title: Ox._('Resolution')
|
||||
}].concat(
|
||||
self.resolutions.map(function(resolution) {
|
||||
return {
|
||||
|
|
@ -1950,13 +1950,13 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.options.subtitles.length
|
||||
? [{}, {
|
||||
checked: self.options.enableSubtitles,
|
||||
title: 'Subtitles'
|
||||
title: Ox._('Subtitles')
|
||||
}]
|
||||
: [],
|
||||
self.options.timelineTypes.length
|
||||
? [{}, {
|
||||
disabled: true,
|
||||
title: 'Timeline'
|
||||
title: Ox._('Timeline')
|
||||
}] : [],
|
||||
self.options.timelineTypes.length
|
||||
? self.options.timelineTypes.map(function(type) {
|
||||
|
|
@ -1967,7 +1967,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
})
|
||||
: [],
|
||||
self.options.enableDownload
|
||||
? [{}, {title: 'Download'}]
|
||||
? [{}, {title: Ox._('Download')}]
|
||||
: []
|
||||
),
|
||||
height = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue