Skip to content

Commit

Permalink
bug #1014 Fixed missing translation "Delete" (emmanuelballery)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Fixed missing translation "Delete"

Even though this button is hidden in the delete form, the debug bar is always reporting for missing translations and it's a bit annoying.

Commits
-------

6989ed4 Fixed missing translation "Delete"
  • Loading branch information
javiereguiluz committed Mar 19, 2016
2 parents 82fe4ee + 6989ed4 commit ac345d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ protected function createDeleteForm($entityName, $entityId)
;

$submitButtonType = $this->useLegacyFormComponent() ? 'submit' : 'Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType';
$formBuilder->add('submit', $submitButtonType, array('label' => 'Delete'));
$formBuilder->add('submit', $submitButtonType, array('label' => 'delete_modal.action', 'translation_domain' => 'EasyAdminBundle'));

return $formBuilder->getForm();
}
Expand Down

0 comments on commit ac345d3

Please sign in to comment.