This bugtracker is archived (announcement). New tickets are created on github.com. See all framework issues, cms issues, and search the module listings for more specific bugtrackers.

Ticket #4420: fix_for_incorrect_batch_action_label.diff

File fix_for_incorrect_batch_action_label.diff, 2.1 KB (added by hsmith, 5 years ago)

Diff file generated with Git

  • cms/code/CMSBatchAction.php

    diff --git a/cms/code/CMSBatchAction.php b/cms/code/CMSBatchAction.php
    index f445b40..9ca3064 100644
    a b class CMSBatchAction_Unpublish extends CMSBatchAction { 
    109109 */ 
    110110class CMSBatchAction_Delete extends CMSBatchAction { 
    111111        function getActionTitle() { 
    112                 return _t('CMSBatchActions.DELETE_PAGES', 'Delete from draft'); 
     112                return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft'); 
    113113        } 
    114114        function getDoingText() { 
    115                 return _t('CMSBatchActions.DELETING_PAGES', 'Deleting selected pages from draft'); 
     115                return _t('CMSBatchActions.DELETING_DRAFT_PAGES', 'Deleting selected pages from draft'); 
    116116        } 
    117117 
    118118        function run(DataObjectSet $pages) { 
    class CMSBatchAction_Delete extends CMSBatchAction { 
    139139                        unset($page); 
    140140                } 
    141141 
    142                 $message = sprintf(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from the draft site'), $pages->Count()); 
     142                $message = sprintf(_t('CMSBatchActions.DELETED_DRAFT_PAGES', 'Deleted %d pages from the draft site'), $pages->Count()); 
    143143                FormResponse::add('statusMessage("'.$message.'","good");'); 
    144144 
    145145                return FormResponse::respond(); 
  • cms/lang/en_US.php

    diff --git a/cms/lang/en_US.php b/cms/lang/en_US.php
    index ef8752d..e2b4885 100755
    a b $lang['en_US']['AssetTableField.ss']['SHOW'] = 'Show asset'; 
    5858$lang['en_US']['CMSBatchActions']['DELETED_PAGES'] = 'Deleted %d pages from the published site'; 
    5959$lang['en_US']['CMSBatchActions']['DELETE_PAGES'] = 'Delete from published site'; 
    6060$lang['en_US']['CMSBatchActions']['DELETING_PAGES'] = 'Deleting selected pages from the published site'; 
     61$lang['en_US']['CMSBatchActions']['DELETED_DRAFT_PAGES'] = 'Deleted %d pages from the draft site'; 
     62$lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft'; 
     63$lang['en_US']['CMSBatchActions']['DELETING_DRAFT_PAGES'] = 'Deleting selected pages from draft'; 
    6164$lang['en_US']['CMSBatchActions']['PUBLISHED_PAGES'] = 'Published %d pages'; 
    6265$lang['en_US']['CMSBatchActions']['PUBLISHING_PAGES'] = 'Publishing pages'; 
    6366$lang['en_US']['CMSBatchActions']['PUBLISH_PAGES'] = 'Publish';