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

View File

@ -31,6 +31,9 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'Tree.AddSubPage': 'Add new page here',
'Tree.EditPage': 'Edit',
'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'
});
}