Procházet zdrojové kódy

force translation of action_label

Benoit Pointet před 13 roky
rodič
revize
f4747aec50
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();