diff --git a/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php b/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php index f55073eb..21dc2e47 100644 --- a/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php +++ b/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php @@ -235,12 +235,18 @@ private function isPropertyAllowed(PropertyInterface $property, EnvironmentInter $inputProvider = $environment->getInputProvider(); assert($inputProvider instanceof InputProviderInterface); + $definition = $environment->getDataDefinition(); + assert($definition instanceof ContainerInterface); + + $modelName = $definition->getBasicDefinition()->getDataProvider(); + Message::addInfo( $translator->translate( 'not_allowed_property_info', 'dc-general', [ - '%property%' => $property->getLabel() ?: $property->getName(), + '%property%' => $translator->translate($property->getLabel(), $modelName) + ?: $property->getName(), '%mode%' => $translator->translate( $inputProvider->getParameter('mode') . 'Selected', 'dc-general'