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

@ -33,7 +33,7 @@ Ox.ExamplePage = function(options, self) {
self.$homeButton = Ox.Button({
title: 'home',
tooltip: 'Home',
tooltip: Ox._('Home'),
type: 'image'
})
.css({float: 'left', margin: '4px 2px 4px 4px'})
@ -54,7 +54,7 @@ Ox.ExamplePage = function(options, self) {
self.$openButton = Ox.Button({
disabled: self.options.selected == 'source',
title: 'open',
tooltip: 'Open in New Tab',
tooltip: Ox._('Open in New Tab'),
type: 'image'
})
.css({float: 'right', margin: '4px 4px 4px 2px'})
@ -68,7 +68,7 @@ Ox.ExamplePage = function(options, self) {
self.$reloadButton = Ox.Button({
disabled: self.options.selected == 'source',
title: 'redo',
tooltip: 'Reload',
tooltip: Ox._('Reload'),
type: 'image'
})
.css({float: 'right', margin: '4px 2px 4px 2px'})
@ -82,7 +82,7 @@ Ox.ExamplePage = function(options, self) {
self.$switchButton = Ox.Button({
disabled: self.options.selected == 'source',
title: 'switch',
tooltip: 'Switch Theme',
tooltip: Ox._('Switch Theme'),
type: 'image'
})
.css({float: 'right', margin: '4px 2px 4px 2px'})
@ -104,12 +104,12 @@ Ox.ExamplePage = function(options, self) {
buttons: [
{
id: 'source',
title: 'View Source',
title: Ox._('View Source'),
width: 80
},
{
id: 'live',
title: 'View Live',
title: Ox._('View Live'),
width: 80
}
],