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
|
|
@ -22,24 +22,24 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
? 'textarea' : 'input';
|
||||
|
||||
self.items = [
|
||||
{id: 'img', title: 'Image'},
|
||||
{id: 'a', title: 'Link'},
|
||||
{id: 'li', title: 'List'},
|
||||
{id: 'img', title: Ox._('Image')},
|
||||
{id: 'a', title: Ox._('Link')},
|
||||
{id: 'li', title: Ox._('List')},
|
||||
{},
|
||||
{id: 'blockquote', title: 'Blockquote'},
|
||||
{id: 'h1', title: 'Headline'},
|
||||
{id: 'p', title: 'Paragraph'},
|
||||
{id: 'div', title: 'Right-to-Left'},
|
||||
{id: 'blockquote', title: Ox._('Blockquote')},
|
||||
{id: 'h1', title: Ox._('Headline')},
|
||||
{id: 'p', title: Ox._('Paragraph')},
|
||||
{id: 'div', title: Ox._('Right-to-Left')},
|
||||
{},
|
||||
{id: 'b', title: 'Bold'},
|
||||
{id: 'i', title: 'Italic'},
|
||||
{id: 'code', title: 'Monospace'},
|
||||
{id: 's', title: 'Strike'},
|
||||
{id: 'sub', title: 'Subscript'},
|
||||
{id: 'sup', title: 'Superscript'},
|
||||
{id: 'u', title: 'Underline'},
|
||||
{id: 'b', title: Ox._('Bold')},
|
||||
{id: 'i', title: Ox._('Italic')},
|
||||
{id: 'code', title: Ox._('Monospace')},
|
||||
{id: 's', title: Ox._('Strike')},
|
||||
{id: 'sub', title: Ox._('Subscript')},
|
||||
{id: 'sup', title: Ox._('Superscript')},
|
||||
{id: 'u', title: Ox._('Underline')},
|
||||
{},
|
||||
{id: 'br', title: 'Linebreak'}
|
||||
{id: 'br', title: Ox._('Linebreak')}
|
||||
].map(function(item, i) {
|
||||
var form, format;
|
||||
if (item.id == 'img') {
|
||||
|
|
@ -81,8 +81,8 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
Ox.Select({
|
||||
id: 'style',
|
||||
items: [
|
||||
{id: 'ul', title: 'Bullets'},
|
||||
{id: 'ol', title: 'Numbers'}
|
||||
{id: 'ul', title: Ox._('Bullets')},
|
||||
{id: 'ol', title: Ox._('Numbers')}
|
||||
],
|
||||
label: 'Style',
|
||||
labelWidth: 128,
|
||||
|
|
@ -168,7 +168,7 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
buttons: [
|
||||
Ox.Button({
|
||||
id: 'cancel',
|
||||
title: 'Cancel',
|
||||
title: Ox._('Cancel'),
|
||||
width: 64
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
@ -178,7 +178,7 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
}),
|
||||
Ox.Button({
|
||||
id: 'insert',
|
||||
title: 'Insert',
|
||||
title: Ox._('Insert'),
|
||||
width: 64
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
@ -201,7 +201,7 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
content: self.$content,
|
||||
height: 184,
|
||||
keys: {enter: 'insert', escape: 'cancel'},
|
||||
title: 'Insert HTML',
|
||||
title: Ox._('Insert HTML'),
|
||||
width: 416 + Ox.UI.SCROLLBAR_SIZE
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue