MINOR i18n for revert confirmation messages, improved wording

This commit is contained in:
Ingo Schommer 2012-04-10 14:02:05 +02:00
parent ca4e8e1bdb
commit 39208d15e0
2 changed files with 13 additions and 4 deletions

View File

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

View File

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