Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

URLSegment JS UI globalization

  • Loading branch information...
commit 635c05b3b4bc5b9ee94ef6ecfc7c7b69b1b940ba 1 parent 7e33fac
@chillu chillu authored
View
6 javascript/SiteTreeURLSegmentField.js
@@ -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
5 javascript/lang/en_US.js
@@ -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'
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.