소스 검색

force translation of action_label

Benoit Pointet 13 년 전
부모
커밋
f4747aec50
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/CRUDController.php

+ 1 - 1
Controller/CRUDController.php

@@ -440,7 +440,7 @@ class CRUDController extends Controller
         $askConfirmation = isset($batchActions[$action]['ask_confirmation']) ? $batchActions[$action]['ask_confirmation'] : true;
 
         if ($askConfirmation && $confirmation != 'ok') {
-            $label = isset($batchActions[$action]['label']) ? $batchActions[$action]['label'] : $action;
+            $label = $this->admin->trans($this->admin->getLabelTranslatorStrategy()->getLabel($action, 'action'));
 
             $formView = $datagrid->getForm()->createView();