Skip to content
This repository
Browse code

URLSegment JS UI globalization

  • Loading branch information...
commit 635c05b3b4bc5b9ee94ef6ecfc7c7b69b1b940ba 1 parent 7e33fac
Ingo Schommer authored August 06, 2012
6  javascript/SiteTreeURLSegmentField.js
@@ -160,7 +160,7 @@
160 160
 				// edit button
161 161
 				editAction = $('<button />', {
162 162
 					'class': 'ss-ui-button ss-ui-button-small edit',
163  
-					'text': 'Edit',
  163
+					'text': ss.i18n._t('URLSEGMENT.Edit'),
164 164
 					'click': function(e) {
165 165
 						e.preventDefault();
166 166
 						self.edit();
@@ -171,7 +171,7 @@
171 171
 				// update button
172 172
 				updateAction = $('<button />', {
173 173
 					'class': 'update ss-ui-button-small',
174  
-					'text': 'OK',
  174
+					'text': ss.i18n._t('URLSEGMENT.OK'),
175 175
 					'click': function(e) {
176 176
 						e.preventDefault();
177 177
 						self.update();
@@ -182,7 +182,7 @@
182 182
 				cancelAction = $('<button />', {
183 183
 					'class': 'cancel ss-ui-action-minor ss-ui-button-small',
184 184
 					'href': '#',
185  
-					'text': 'cancel',
  185
+					'text':  ss.i18n._t('URLSEGMENT.Cancel'),
186 186
 					'click': function(e) {
187 187
 						e.preventDefault();
188 188
 						self.cancel();
5  javascript/lang/en_US.js
@@ -31,6 +31,9 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
31 31
 		'Tree.AddSubPage': 'Add new page here',
32 32
 		'Tree.EditPage': 'Edit',
33 33
 		'CMSMain.ConfirmRestoreFromLive': "Do you really want to copy the published content to the draft site?",
34  
-		'CMSMain.RollbackToVersion': "Do you really want to roll back to version #%s of this page?"
  34
+		'CMSMain.RollbackToVersion': "Do you really want to roll back to version #%s of this page?",
  35
+		'URLSEGMENT.Edit': 'Edit',
  36
+		'URLSEGMENT.OK': 'OK',
  37
+		'URLSEGMENT.Cancel': 'Cancel'
35 38
 	});
36 39
 }

0 notes on commit 635c05b

Please sign in to comment.
Something went wrong with that request. Please try again.