URLSegment JS UI globalization

This commit is contained in:
Ingo Schommer 2012-08-06 10:49:25 +02:00
parent 7e33fac7fa
commit 635c05b3b4
2 changed files with 7 additions and 4 deletions

View File

@ -160,7 +160,7 @@
// edit button // edit button
editAction = $('<button />', { editAction = $('<button />', {
'class': 'ss-ui-button ss-ui-button-small edit', 'class': 'ss-ui-button ss-ui-button-small edit',
'text': 'Edit', 'text': ss.i18n._t('URLSEGMENT.Edit'),
'click': function(e) { 'click': function(e) {
e.preventDefault(); e.preventDefault();
self.edit(); self.edit();
@ -171,7 +171,7 @@
// update button // update button
updateAction = $('<button />', { updateAction = $('<button />', {
'class': 'update ss-ui-button-small', 'class': 'update ss-ui-button-small',
'text': 'OK', 'text': ss.i18n._t('URLSEGMENT.OK'),
'click': function(e) { 'click': function(e) {
e.preventDefault(); e.preventDefault();
self.update(); self.update();
@ -182,7 +182,7 @@
cancelAction = $('<button />', { cancelAction = $('<button />', {
'class': 'cancel ss-ui-action-minor ss-ui-button-small', 'class': 'cancel ss-ui-action-minor ss-ui-button-small',
'href': '#', 'href': '#',
'text': 'cancel', 'text': ss.i18n._t('URLSEGMENT.Cancel'),
'click': function(e) { 'click': function(e) {
e.preventDefault(); e.preventDefault();
self.cancel(); self.cancel();

View File

@ -31,6 +31,9 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'Tree.AddSubPage': 'Add new page here', 'Tree.AddSubPage': 'Add new page here',
'Tree.EditPage': 'Edit', 'Tree.EditPage': 'Edit',
'CMSMain.ConfirmRestoreFromLive': "Do you really want to copy the published content to the draft site?", 'CMSMain.ConfirmRestoreFromLive': "Do you really want to copy the published content to the draft site?",
'CMSMain.RollbackToVersion': "Do you really want to roll back to version #%s of this page?" 'CMSMain.RollbackToVersion': "Do you really want to roll back to version #%s of this page?",
'URLSEGMENT.Edit': 'Edit',
'URLSEGMENT.OK': 'OK',
'URLSEGMENT.Cancel': 'Cancel'
}); });
} }