[BUGFIX] Form localization depending on old class names
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Validation / AbstractValidator.php
index e1831df..a707023 100644 (file)
@@ -250,7 +250,7 @@ abstract class AbstractValidator implements \TYPO3\CMS\Form\Validation\Validator
         * @return string The local language message label
         */
        protected function getLocalLanguageLabel($type) {
-               $label = strtolower(get_class($this)) . '.' . $type;
+               $label = self::LOCALISATION_OBJECT_NAME . '.' . $type;
                $message = $this->localizationHandler->getLocalLanguageLabel($label);
                return $message;
        }