Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR i18n for revert confirmation messages, improved wording

  • Loading branch information...
commit 39208d15e0b02f2bd35ddd06351e580ade49645e 1 parent ca4e8e1
Ingo Schommer chillu authored
Showing with 13 additions and 4 deletions.
  1. +10 −3 javascript/CMSMain.EditForm.js
  2. +3 −1 javascript/lang/en_US.js
13 javascript/CMSMain.EditForm.js
View
@@ -254,11 +254,18 @@
// @todo i18n
var form = this.parents('form:first'), version = form.find(':input[name=Version]').val(), message = '';
if(version) {
- message = "Do you really want to roll back to version #" + version + " of this page?";
+ message = ss.i18n.sprintf(
+ ss.i18n._t('CMSMain.RollbackToVersion'),
+ version
+ );
} else {
- message = "Do you really want to copy the published content to the stage site?";
+ message = ss.i18n._t('CMSMain.ConfirmRestoreFromLive');
+ }
+ if(confirm(message)) {
+ return this._super(e);
+ } else {
+ return false;
}
- return confirm(message);
}
});
4 javascript/lang/en_US.js
View
@@ -38,6 +38,8 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'AssetAdmin.ConfirmDelete': 'Do you really want to delete this folder and all contained files?',
'Folder.Name': 'Folder name',
'Tree.AddSubPage': 'Add new page here',
- 'Tree.EditPage': 'Edit'
+ '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?"
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.