diff --git a/code/CMSBatchAction.php b/code/CMSBatchAction.php index 33c56dc9..185e7334 100644 --- a/code/CMSBatchAction.php +++ b/code/CMSBatchAction.php @@ -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(); diff --git a/lang/en_US.php b/lang/en_US.php index 9877ec03..e74fd54c 100755 --- a/lang/en_US.php +++ b/lang/en_US.php @@ -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';