Permalink
Browse files

MINOR Javascript translations in CMSMain_right.js (fixes #6142)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@113248 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu authored and sminnee committed Oct 31, 2010
1 parent c0f8b44 commit ba4da1fa6375f5651ae38c1ac53ad7f1616ce570
Showing with 10 additions and 6 deletions.
  1. +6 −5 javascript/CMSMain_right.js
  2. +4 −1 javascript/lang/en_US.js
@@ -35,11 +35,12 @@ function action_rollback_right() {
}
if($('Form_EditForm').elements.Version && $('Form_EditForm').elements.Version.value) {
- var message = "Do you really want to roll back to version #"
- + $('Form_EditForm').elements.Version.value + " of this page?";
-
+ var message = ss.i18n.sprintf(
+ ss.i18n._t('CMSMAIN.RollbackConfirmation'),
+ $('Form_EditForm').elements.Version.value
+ );
} else {
- var message = "Do you really want to copy the published content to the stage site?";
+ var message = ss.i18n._t('CMSMAIN.CopyPublishedConfirmation');
}
if(confirm(message)) {
@@ -91,7 +92,7 @@ Behaviour.register({
Behaviour.register({
'select#Form_EditForm_ClassName' : {
onchange: function() {
- alert('The page type will be updated after the page is saved');
+ alert(ss.i18n._t('CMSMAIN.PageTypeSaveAlert'));
}
},
View
@@ -26,6 +26,9 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'ModelAdmin.VALIDATIONERROR': "Validation Error",
'LeftAndMain.PAGEWASDELETED': "This page was deleted. To edit a page, select it from the left.",
'LeftAndMain.CONFIRMUNSAVED': "Are you sure you want to navigate away from this page?\n\nWARNING: Your changes have not been saved.\n\nPress OK to continue, or Cancel to stay on the current page.",
- 'WidgetAreaEditor.TOOMANY': 'Sorry, you have reached the maximum number of widgets in this area'
+ 'WidgetAreaEditor.TOOMANY': 'Sorry, you have reached the maximum number of widgets in this area',
+ 'CMSMAIN.RollbackConfirmation': 'Do you really want to roll back to version #%s of this page?',
+ 'CMSMAIN.CopyPublishedConfirmation': 'Do you really want to copy the published content to the stage site?',
+ 'CMSMAIN.PageTypeSaveAlert': 'The page type will be updated after the page is saved'
});
}

0 comments on commit ba4da1f

Please sign in to comment.