wrap more strings in Ox._
This commit is contained in:
parent
42cb002c5f
commit
535c04d386
5 changed files with 44 additions and 44 deletions
|
@ -567,9 +567,9 @@ Ox.CalendarEditor = function(options, self) {
|
||||||
endTime = +new Date((+bounds.endTime + middle) / 2),
|
endTime = +new Date((+bounds.endTime + middle) / 2),
|
||||||
event = {},
|
event = {},
|
||||||
i = 1;
|
i = 1;
|
||||||
event.name = 'Untitled';
|
event.name = Ox._('Untitled');
|
||||||
while (nameExists(event.name)) {
|
while (nameExists(event.name)) {
|
||||||
event.name = 'Untitled [' + (++i) + ']';
|
event.name = Ox._('Untitled') + ' [' + (++i) + ']';
|
||||||
};
|
};
|
||||||
event.alternativeNames = [];
|
event.alternativeNames = [];
|
||||||
event.type = 'other';
|
event.type = 'other';
|
||||||
|
|
|
@ -175,7 +175,7 @@ Ox.Filter = function(options, self) {
|
||||||
}),
|
}),
|
||||||
Ox.Input({
|
Ox.Input({
|
||||||
id: 'list',
|
id: 'list',
|
||||||
placeholder: 'Untitled',
|
placeholder: Ox._('Untitled'),
|
||||||
width: 128
|
width: 128
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
|
@ -18,7 +18,7 @@ Ox.ObjectArrayInput = function(options, self) {
|
||||||
self = self || {};
|
self = self || {};
|
||||||
var that = Ox.Element({}, self)
|
var that = Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
buttonTitles: {add: 'Add', remove: 'Remove'},
|
buttonTitles: {add: Ox._('Add'), remove: Ox._('Remove')},
|
||||||
inputs: [],
|
inputs: [],
|
||||||
labelWidth: 128,
|
labelWidth: 128,
|
||||||
max: 0,
|
max: 0,
|
||||||
|
|
|
@ -455,42 +455,42 @@ Ox.VideoEditor = function(options, self) {
|
||||||
|
|
||||||
self.$keyboardShortcuts = $('<div>').css({margin: '16px'});
|
self.$keyboardShortcuts = $('<div>').css({margin: '16px'});
|
||||||
[
|
[
|
||||||
{key: Ox.UI.symbols.space, action: 'Play/Pause'},
|
{key: Ox.UI.symbols.space, action: Ox._('Play/Pause')},
|
||||||
{key: 'P', action: 'Play In to Out'},
|
{key: 'P', action: Ox._('Play In to Out')},
|
||||||
{key: '0', action: 'Mute/Unmute'},
|
{key: '0', action: Ox._('Mute/Unmute')},
|
||||||
{key: '-', action: 'Turn Volume Down'},
|
{key: '-', action: Ox._('Turn Volume Down')},
|
||||||
{key: '+', action: 'Turn Volume Up'},
|
{key: '+', action: Ox._('Turn Volume Up')},
|
||||||
{key: Ox.UI.symbols.shift + '-', action: 'Small Player'},
|
{key: Ox.UI.symbols.shift + '-', action: Ox._('Small Player')},
|
||||||
{key: Ox.UI.symbols.shift + '+', action: 'Large Player'},
|
{key: Ox.UI.symbols.shift + '+', action: Ox._('Large Player')},
|
||||||
{key: Ox.UI.symbols.arrow_left, action: 'Go One Frame Back'},
|
{key: Ox.UI.symbols.arrow_left, action: Ox._('Go One Frame Back')},
|
||||||
{key: Ox.UI.symbols.arrow_right, action: 'Go One Frame Forward'},
|
{key: Ox.UI.symbols.arrow_right, action: Ox._('Go One Frame Forward')},
|
||||||
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_left, action: 'Go One Second Back'},
|
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_left, action: Ox._('Go One Second Back')},
|
||||||
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_right, action: 'Go One Second Forward'},
|
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_right, action: Ox._('Go One Second Forward')},
|
||||||
{key: Ox.UI.symbols.arrow_up, action: 'Go One Line Up'},
|
{key: Ox.UI.symbols.arrow_up, action: Ox._('Go One Line Up')},
|
||||||
{key: Ox.UI.symbols.arrow_down, action: 'Go One Line Down'},
|
{key: Ox.UI.symbols.arrow_down, action: Ox._('Go One Line Down')},
|
||||||
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_up, action: 'Go to First Frame'},
|
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_up, action: Ox._('Go to First Frame')},
|
||||||
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_down, action: 'Go to Last Frame'},
|
{key: Ox.UI.symbols.shift + Ox.UI.symbols.arrow_down, action: Ox._('Go to Last Frame')},
|
||||||
{key: 'I', action: 'Set In Point'},
|
{key: 'I', action: Ox._('Set In Point')},
|
||||||
{key: 'O', action: 'Set Out Point'},
|
{key: 'O', action: Ox._('Set Out Point')},
|
||||||
{key: Ox.UI.symbols.shift + 'I', action: 'Go to In Point'},
|
{key: Ox.UI.symbols.shift + 'I', action: Ox._('Go to In Point')},
|
||||||
{key: Ox.UI.symbols.shift + 'O', action: 'Go to Out Point'},
|
{key: Ox.UI.symbols.shift + 'O', action: Ox._('Go to Out Point')},
|
||||||
{key: '[', action: 'Go to Previous Annotation'},
|
{key: '[', action: Ox._('Go to Previous Annotation')},
|
||||||
{key: ']', action: 'Go to Next Annotation'},
|
{key: ']', action: Ox._('Go to Next Annotation')},
|
||||||
{key: '\\', action: 'Select Current Annotation'},
|
{key: '\\', action: Ox._('Select Current Annotation')},
|
||||||
{key: 'B', action: 'Select Previous Annotation'},
|
{key: 'B', action: Ox._('Select Previous Annotation')},
|
||||||
{key: 'N', action: 'Select Next Annotation'},
|
{key: 'N', action: Ox._('Select Next Annotation')},
|
||||||
{key: '<', action: 'Go to Previous Cut'},
|
{key: '<', action: Ox._('Go to Previous Cut')},
|
||||||
{key: '>', action: 'Go to Next Cut'},
|
{key: '>', action: Ox._('Go to Next Cut')},
|
||||||
{key: '/', action: 'Select Current Cut'},
|
{key: '/', action: Ox._('Select Current Cut')},
|
||||||
{key: 'F', action: 'Find'},
|
{key: 'F', action: Ox._('Find')},
|
||||||
{key: Ox.UI.symbols.shift + 'G', action: 'Go to Previous Result'},
|
{key: Ox.UI.symbols.shift + 'G', action: Ox._('Go to Previous Result')},
|
||||||
{key: 'G', action: 'Go to Next Result'},
|
{key: 'G', action: Ox._('Go to Next Result')},
|
||||||
{key: Ox.UI.symbols['return'], action: 'Edit/Submit'},
|
{key: Ox.UI.symbols['return'], action: Ox._('Edit/Submit')},
|
||||||
{key: Ox.UI.symbols.escape, action: 'Cancel/Deselect'}
|
{key: Ox.UI.symbols.escape, action: Ox._('Cancel/Deselect')}
|
||||||
].concat(
|
].concat(
|
||||||
Ox.filter(self.options.layers.map(function(layer, i) {
|
Ox.filter(self.options.layers.map(function(layer, i) {
|
||||||
return layer.editable
|
return layer.editable
|
||||||
? {key: i + 1, action: 'Add ' + layer.item}
|
? {key: i + 1, action: Ox._('Add {0}', [layer.item])}
|
||||||
: null;
|
: null;
|
||||||
}))
|
}))
|
||||||
).forEach(function(shortcut) {
|
).forEach(function(shortcut) {
|
||||||
|
|
|
@ -1891,9 +1891,9 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
self.$settings.hide();
|
self.$settings.hide();
|
||||||
if (!$target.is('.OxLine') && !$target.is('.OxSpace')) {
|
if (!$target.is('.OxLine') && !$target.is('.OxSpace')) {
|
||||||
title = $(e.target).parent().children()[0].innerHTML;
|
title = $(e.target).parent().children()[0].innerHTML;
|
||||||
if (title == 'Download') {
|
if (title == Ox._('Download')) {
|
||||||
that.triggerEvent('download');
|
that.triggerEvent('download');
|
||||||
} else if (title == 'Subtitles') {
|
} else if (title == Ox._('Subtitles')) {
|
||||||
toggleSubtitles();
|
toggleSubtitles();
|
||||||
} else if (isResolution(title)) {
|
} else if (isResolution(title)) {
|
||||||
resolution = parseInt(title, 10);
|
resolution = parseInt(title, 10);
|
||||||
|
@ -1916,7 +1916,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
var children = $(this).children(),
|
var children = $(this).children(),
|
||||||
title = children[0].innerHTML,
|
title = children[0].innerHTML,
|
||||||
checked = (
|
checked = (
|
||||||
title == 'Subtitles'
|
title == Ox.('Subtitles')
|
||||||
&& self.options.enableSubtitles
|
&& self.options.enableSubtitles
|
||||||
) || (
|
) || (
|
||||||
isResolution(title)
|
isResolution(title)
|
||||||
|
@ -1939,7 +1939,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
}),
|
}),
|
||||||
items = [{
|
items = [{
|
||||||
disabled: true,
|
disabled: true,
|
||||||
title: 'Resolution'
|
title: Ox._('Resolution')
|
||||||
}].concat(
|
}].concat(
|
||||||
self.resolutions.map(function(resolution) {
|
self.resolutions.map(function(resolution) {
|
||||||
return {
|
return {
|
||||||
|
@ -1950,13 +1950,13 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
self.options.subtitles.length
|
self.options.subtitles.length
|
||||||
? [{}, {
|
? [{}, {
|
||||||
checked: self.options.enableSubtitles,
|
checked: self.options.enableSubtitles,
|
||||||
title: 'Subtitles'
|
title: Ox._('Subtitles')
|
||||||
}]
|
}]
|
||||||
: [],
|
: [],
|
||||||
self.options.timelineTypes.length
|
self.options.timelineTypes.length
|
||||||
? [{}, {
|
? [{}, {
|
||||||
disabled: true,
|
disabled: true,
|
||||||
title: 'Timeline'
|
title: Ox._('Timeline')
|
||||||
}] : [],
|
}] : [],
|
||||||
self.options.timelineTypes.length
|
self.options.timelineTypes.length
|
||||||
? self.options.timelineTypes.map(function(type) {
|
? self.options.timelineTypes.map(function(type) {
|
||||||
|
@ -1967,7 +1967,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
})
|
})
|
||||||
: [],
|
: [],
|
||||||
self.options.enableDownload
|
self.options.enableDownload
|
||||||
? [{}, {title: 'Download'}]
|
? [{}, {title: Ox._('Download')}]
|
||||||
: []
|
: []
|
||||||
),
|
),
|
||||||
height = 0;
|
height = 0;
|
||||||
|
|
Loading…
Reference in a new issue