diff --git a/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php b/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php index a2d42b17..21b77017 100644 --- a/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php +++ b/src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php @@ -329,7 +329,7 @@ private function renderFieldSets( $translator = $environment->getTranslator(); assert($translator instanceof TranslatorInterface); - if ('' !== $fieldSet['palette']) { + if ('' === $fieldSet['palette']) { $fieldSet['palette'] = \sprintf( '

 

%s

 

', $translator->translate('no_properties_available', 'dc-general') 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'