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

@ -625,7 +625,7 @@ Ox.VideoPlayer = function(options, self) {
self.$closeButton = Ox.Button({
style: 'video',
title: 'close',
tooltip: 'Close',
tooltip: Ox._('Close'),
type: 'image'
})
.bindEvent({
@ -640,7 +640,7 @@ Ox.VideoPlayer = function(options, self) {
self.$findButton = Ox.Button({
style: 'video',
title: 'find',
tooltip: 'Find',
tooltip: Ox._('Find'),
type: 'image'
})
.bindEvent({
@ -652,7 +652,7 @@ Ox.VideoPlayer = function(options, self) {
self.$fullscreenButton = Ox.Button({
style: 'video',
tooltip: ['Enter Fullscreen', 'Exit Fullscreen'],
tooltip: [Ox._('Enter Fullscreen'), Ox._('Exit Fullscreen')],
type: 'image',
value: self.options.fullscreen ? 'shrink' : 'grow',
values: ['grow', 'shrink']
@ -669,7 +669,7 @@ Ox.VideoPlayer = function(options, self) {
self.$setButton = Ox.Button({
style: 'video',
title: 'goTo' + Ox.toTitleCase(self.options.type),
tooltip: 'Go to ' + Ox.toTitleCase(self.options.type) + ' Point',
tooltip: Ox._('Go to ' + Ox.toTitleCase(self.options.type) + ' Point'),
type: 'image'
})
.bindEvent({
@ -681,7 +681,7 @@ Ox.VideoPlayer = function(options, self) {
self.$muteButton = Ox.Button({
style: 'video',
tooltip: ['Mute', 'Unmute'],
tooltip: [Ox._('Mute'), Ox._('Unmute')],
type: 'image',
value: self.options.muted ? 'unmute' : 'mute',
values: ['mute', 'unmute']
@ -698,7 +698,7 @@ Ox.VideoPlayer = function(options, self) {
self.$nextClipButton = Ox.Button({
style: 'video',
title: 'arrowRight',
tooltip: 'Next',
tooltip: Ox._('Next'),
type: 'image'
})
.bindEvent({
@ -728,7 +728,7 @@ Ox.VideoPlayer = function(options, self) {
self.$playButton = Ox.Button({
style: 'video',
// FIXME: this is retarded, fix Ox.Button
tooltip: ['Play', 'Pause'],
tooltip: [Ox._('Play'), Ox._('Pause')],
type: 'image',
value: self.options.paused ? 'play' : 'pause',
values: ['play', 'pause']
@ -745,7 +745,7 @@ Ox.VideoPlayer = function(options, self) {
self.$playInToOutButton = Ox.Button({
style: 'video',
title: 'playInToOut',
tooltip: 'Play In to Out',
tooltip: Ox._('Play In to Out'),
type: 'image'
})
.bindEvent({
@ -821,7 +821,7 @@ Ox.VideoPlayer = function(options, self) {
self.$previousClipButton = Ox.Button({
style: 'video',
title: 'arrowLeft',
tooltip: 'Previous',
tooltip: Ox._('Previous'),
type: 'image'
})
.bindEvent({
@ -835,7 +835,7 @@ Ox.VideoPlayer = function(options, self) {
self.$scaleButton = Ox.Button({
style: 'video',
tooltip: ['Scale to Fill', 'Scale to Fit'],
tooltip: [Ox._('Scale to Fill'), Ox._('Scale to Fit')],
type: 'image',
value: self.options.scaleToFill ? 'fit' : 'fill',
values: ['fill', 'fit']
@ -850,7 +850,7 @@ Ox.VideoPlayer = function(options, self) {
self.$setButton = Ox.Button({
style: 'video',
title: 'set' + Ox.toTitleCase(self.options.type),
tooltip: 'Set ' + Ox.toTitleCase(self.options.type) + ' Point',
tooltip: Ox._('Set ' + Ox.toTitleCase(self.options.type) + ' Point'),
type: 'image'
})
.bindEvent({
@ -863,7 +863,7 @@ Ox.VideoPlayer = function(options, self) {
self.$settingsButton = Ox.Button({
style: 'video',
title: 'set',
tooltip: 'Settings',
tooltip: Ox._('Settings'),
type: 'image'
})
.bindEvent({
@ -879,7 +879,7 @@ Ox.VideoPlayer = function(options, self) {
self.$sizeButton = Ox.Button({
style: 'video',
tooltip: ['Larger', 'Smaller'],
tooltip: [Ox._('Larger'), Ox._('Smaller')],
type: 'image',
value: self.options.sizeIsLarge ? 'shrink' : 'grow',
values: ['grow', 'shrink']
@ -938,7 +938,7 @@ Ox.VideoPlayer = function(options, self) {
self.$volumeButton = Ox.Button({
style: 'video',
title: getVolumeImage(),
tooltip: 'Volume',
tooltip: Ox._('Volume'),
type: 'image'
})
.bindEvent({
@ -951,7 +951,7 @@ Ox.VideoPlayer = function(options, self) {
self.$zapHomeButton = Ox.Button({
style: 'video',
title: 'up',
tooltip: 'Home Channel',
tooltip: Ox._('Home Channel'),
type: 'image'
})
.bindEvent({
@ -966,7 +966,7 @@ Ox.VideoPlayer = function(options, self) {
self.$zapNextButton = Ox.Button({
style: 'video',
title: 'right',
tooltip: 'Next Channel',
tooltip: Ox._('Next Channel'),
type: 'image'
})
.bindEvent({
@ -981,7 +981,7 @@ Ox.VideoPlayer = function(options, self) {
self.$zapPreviousButton = Ox.Button({
style: 'video',
title: 'left',
tooltip: 'Previous Channel',
tooltip: Ox._('Previous Channel'),
type: 'image'
})
.bindEvent({
@ -1015,7 +1015,7 @@ Ox.VideoPlayer = function(options, self) {
.appendTo(that);
self.$results = Ox.Element({
tooltip: 'Results'
tooltip: Ox._('Results')
})
.addClass('OxResults')
.html('0')
@ -1025,7 +1025,7 @@ Ox.VideoPlayer = function(options, self) {
disabled: true,
style: 'symbol',
title: 'arrowLeft',
tooltip: 'Previous',
tooltip: Ox._('Previous'),
type: 'image'
})
.bindEvent({
@ -1039,7 +1039,7 @@ Ox.VideoPlayer = function(options, self) {
disabled: true,
style: 'symbol',
title: 'arrowRight',
tooltip: 'Next',
tooltip: Ox._('Next'),
type: 'image'
})
.bindEvent({
@ -1074,7 +1074,7 @@ Ox.VideoPlayer = function(options, self) {
disabled: !self.options.find,
style: 'symbol',
title: 'delete',
tooltip: 'Clear',
tooltip: Ox._('Clear'),
type: 'image'
})
.bindEvent({
@ -1096,7 +1096,7 @@ Ox.VideoPlayer = function(options, self) {
self.$hideFindButton = Ox.Button({
style: 'symbol',
title: 'close',
tooltip: 'Hide',
tooltip: Ox._('Hide'),
type: 'image'
})
.bindEvent({
@ -1124,7 +1124,7 @@ Ox.VideoPlayer = function(options, self) {
self.$hideVolumeButton = Ox.Button({
style: 'symbol',
title: 'close',
tooltip: 'Hide',
tooltip: Ox._('Hide'),
type: 'image'
})
.bindEvent({
@ -1134,7 +1134,7 @@ Ox.VideoPlayer = function(options, self) {
self.$muteButton = Ox.Button({
style: 'symbol',
tooltip: ['Mute', 'Unmute'],
tooltip: [Ox._('Mute'), Ox._('Unmute')],
type: 'image',
value: self.options.muted ? 'unmute' : 'mute',
values: ['mute', 'unmute']