1
0
Fork 0
forked from 0x2620/oxjs

add localization to Ox

This commit is contained in:
j 2013-05-09 13:03:33 +00:00
commit 4d8c716d0b
31 changed files with 499 additions and 352 deletions

View file

@ -53,7 +53,7 @@ Ox.VideoEditor = function(options, self) {
annotationsRange: 'all',
annotationsSize: 256,
annotationsSort: 'position',
annotationsTooltip: 'annotations',
annotationstooltip: Ox._('annotations'),
censored: [],
censoredIcon: '',
censoredTooltip: '',
@ -516,17 +516,17 @@ Ox.VideoEditor = function(options, self) {
self.$menuButton = Ox.MenuButton({
items: [].concat(
[
{id: 'size', title: 'Large Player', checked: self.options.videoSize == 'large'},
{id: 'size', title: Ox._('Large Player'), checked: self.options.videoSize == 'large'},
{},
{group: 'resolution', min: 1, max: 1, items: self.resolutions}
],
self.options.subtitles.length ? [
{},
{id: 'subtitles', title: 'Show Subtitles', checked: self.options.enableSubtitles}
{id: 'subtitles', title: Ox._('Show Subtitles'), checked: self.options.enableSubtitles}
] : [],
[
{},
{id: 'timelines', title: 'Timeline', disabled: true},
{id: 'timelines', title: Ox._('Timeline'), disabled: true},
{group: 'timeline', min: 1, max: 1, items: Ox.map(
self.options.timelines,
function(timeline) {
@ -536,25 +536,25 @@ Ox.VideoEditor = function(options, self) {
}
)},
{},
{id: 'downloadVideo', title: 'Download Video...', disabled: !self.options.enableDownload },
{id: 'downloadSelection', title: 'Download Selection...', disabled: !self.options.enableDownload},
{id: 'embedSelection', title: 'Embed Selection...'}
{id: 'downloadVideo', title: Ox._('Download Video...'), disabled: !self.options.enableDownload },
{id: 'downloadSelection', title: Ox._('Download Selection...'), disabled: !self.options.enableDownload},
{id: 'embedSelection', title: Ox._('Embed Selection...')}
],
self.options.enableImport ? [
{},
{id: 'importAnnotations', title: 'Import Annotations...'}
{id: 'importAnnotations', title: Ox._('Import Annotations...')}
] : [],
[
{},
{id: 'gotoPosterFrame', title: 'Go to Poster Frame'},
{id: 'setPosterFrame', title: 'Set Poster Frame', disabled: !self.options.enableSetPosterFrame},
{id: 'gotoPosterFrame', title: Ox._('Go to Poster Frame')},
{id: 'setPosterFrame', title: Ox._('Set Poster Frame'), disabled: !self.options.enableSetPosterFrame},
{},
{id: 'keyboard', title: 'Keyboard Shortcuts...', keyboard: 'h'}
{id: 'keyboard', title: Ox._('Keyboard Shortcuts...'), keyboard: 'h'}
]
),
style: 'square',
title: 'set',
tooltip: 'Options',
tooltip: Ox._('Options'),
type: 'image'
})
.css({float: 'left'})
@ -616,7 +616,7 @@ Ox.VideoEditor = function(options, self) {
disabled: self.options.find === '',
style: 'symbol',
title: 'close',
tooltip: 'Clear',
tooltip: Ox._('Clear'),
type: 'image'
})
.css({float: 'right'})
@ -638,7 +638,7 @@ Ox.VideoEditor = function(options, self) {
autocompleteSelectMax: 10,
autocompleteSelectSubmit: true,
changeOnKeypress: true,
placeholder: 'Find...',
placeholder: Ox._('Find...'),
value: self.options.find,
width: 128
})
@ -657,7 +657,7 @@ Ox.VideoEditor = function(options, self) {
disabled: true,
style: 'symbol',
title: 'arrowRight',
tooltip: 'Next Result',
tooltip: Ox._('Next Result'),
type: 'image'
})
.css({float: 'right'})
@ -672,7 +672,7 @@ Ox.VideoEditor = function(options, self) {
disabled: true,
style: 'symbol',
title: 'arrowLeft',
tooltip: 'Previous Result',
tooltip: Ox._('Previous Result'),
type: 'image'
})
.css({float: 'right'})
@ -1265,13 +1265,13 @@ Ox.VideoEditor = function(options, self) {
function showKeyboardShortcuts() {
var dialog = Ox.Dialog({
buttons: [
Ox.Button({id: 'close', title: 'Close'})
Ox.Button({id: 'close', title: Ox._('Close')})
.bindEvent({click: function() { dialog.close(); }})
],
content: self.$keyboardShortcuts,
height: 384,
keys: {enter: 'close', escape: 'close'},
title: 'Keyboard Shortcuts',
title: Ox._('Keyboard Shortcuts'),
width: 256
}).open();
}