mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR i18n for revert confirmation messages, improved wording
This commit is contained in:
parent
ca4e8e1bdb
commit
39208d15e0
@ -254,11 +254,18 @@
|
|||||||
// @todo i18n
|
// @todo i18n
|
||||||
var form = this.parents('form:first'), version = form.find(':input[name=Version]').val(), message = '';
|
var form = this.parents('form:first'), version = form.find(':input[name=Version]').val(), message = '';
|
||||||
if(version) {
|
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 {
|
} 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);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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?',
|
'AssetAdmin.ConfirmDelete': 'Do you really want to delete this folder and all contained files?',
|
||||||
'Folder.Name': 'Folder name',
|
'Folder.Name': 'Folder name',
|
||||||
'Tree.AddSubPage': 'Add new page here',
|
'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?"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user