forked from 0x2620/oxjs
add localization to Ox
This commit is contained in:
parent
b68b827d7b
commit
4d8c716d0b
31 changed files with 499 additions and 352 deletions
|
|
@ -86,7 +86,7 @@ Ox.DocPanel = function(options, self) {
|
|||
.appendTo(self.$toolbar);
|
||||
if (!self.options.results) {
|
||||
self.options.results = {};
|
||||
self.$testsButton = Ox.Button({title: 'Run Tests'})
|
||||
self.$testsButton = Ox.Button({title: Ox._('Run Tests')})
|
||||
.css({margin: '4px auto'})
|
||||
.bindEvent({click: runTests})
|
||||
.appendTo(self.$toolbar);
|
||||
|
|
@ -152,7 +152,7 @@ Ox.DocPanel = function(options, self) {
|
|||
var path = self.options.examplesPath + example;
|
||||
Ox.get(path + '/index.html', function(html) {
|
||||
var match = html.match(/<title>(.+)<\/title>/),
|
||||
title = match ? match[1] : 'Untitled';
|
||||
title = match ? match[1] : Ox._('Untitled');
|
||||
Ox.get(path + '/js/example.js', function(js) {
|
||||
var references = js.match(self.options.references);
|
||||
if (references) {
|
||||
|
|
@ -386,7 +386,7 @@ Ox.DocPanel = function(options, self) {
|
|||
width: 256,
|
||||
textAlign: 'center'
|
||||
})
|
||||
.html('Generating Documentation...')
|
||||
.html(Ox._('Generating Documentation...'))
|
||||
.appendTo(self.$page);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue