MINOR Correct labels for "delete from draft" batch actions (#4420)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@90825 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-04 22:56:29 +00:00
parent 2cada6ff3a
commit c59911dce2
2 changed files with 6 additions and 3 deletions

View File

@ -100,10 +100,10 @@ class CMSBatchAction_Publish extends CMSBatchAction {
*/
class CMSBatchAction_Delete extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.DELETE_PAGES', 'Delete from draft');
return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft');
}
function getDoingText() {
return _t('CMSBatchActions.DELETING_PAGES', 'Deleting selected pages from draft');
return _t('CMSBatchActions.DELETING_DRAFT_PAGES', 'Deleting selected pages from draft');
}
function run(DataObjectSet $pages) {
@ -130,7 +130,7 @@ class CMSBatchAction_Delete extends CMSBatchAction {
unset($page);
}
$message = sprintf(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from the draft site'), $pages->Count());
$message = sprintf(_t('CMSBatchActions.DELETED_DRAFT_PAGES', 'Deleted %d pages from the draft site'), $pages->Count());
FormResponse::add('statusMessage("'.$message.'","good");');
return FormResponse::respond();

View File

@ -60,6 +60,9 @@ $lang['en_US']['AssetTableField.ss']['SHOW'] = 'Show asset';
$lang['en_US']['CMSBatchActions']['DELETED_PAGES'] = 'Deleted %d pages from the published site';
$lang['en_US']['CMSBatchActions']['DELETE_PAGES'] = 'Delete from published site';
$lang['en_US']['CMSBatchActions']['DELETING_PAGES'] = 'Deleting selected pages from the published site';
$lang['en_US']['CMSBatchActions']['DELETED_DRAFT_PAGES'] = 'Deleted %d pages from the draft site';
$lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft';
$lang['en_US']['CMSBatchActions']['DELETING_DRAFT_PAGES'] = 'Deleting selected pages from draft';
$lang['en_US']['CMSBatchActions']['PUBLISHED_PAGES'] = 'Published %d pages, %d failures';
$lang['en_US']['CMSBatchActions']['PUBLISHING_PAGES'] = 'Publishing pages';
$lang['en_US']['CMSBatchActions']['PUBLISH_PAGES'] = 'Publish';