mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
URLSegment JS UI globalization
This commit is contained in:
parent
7e33fac7fa
commit
635c05b3b4
@ -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();
|
||||
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user