From c59911dce229e27d98eeb761254c32f6a806d3de Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 4 Nov 2009 22:56:29 +0000 Subject: [PATCH] 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 --- code/CMSBatchAction.php | 6 +++--- lang/en_US.php | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) 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';