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
This commit is contained in:
Ingo Schommer 2010-10-31 02:22:15 +00:00 committed by Sam Minnee
parent c0f8b44f3f
commit ba4da1fa63
2 changed files with 10 additions and 6 deletions

View File

@ -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 File

@ -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'
});
}