source/Application/Controller/Admin/LanguageMain.php
protected function isValidLanguageData($aLanguageData)
    {
        $blValid = true;
        $configValidator = $this->getNoJsValidator();
        foreach ($aLanguageData as $mLanguageDataParameters) {
            if (is_array($mLanguageDataParameters)) {
                // Recursion till we gonna have a string.
                $blDeepResult = $this->isValidLanguageData($mLanguageDataParameters);
                $blValid = $blDeepResult === false ? $blDeepResult : $blValid;
            } elseif (!$configValidator->isValid($mLanguageDataParameters)) {
                $blValid = false;
                $error = oxNew(\OxidEsales\Eshop\Core\DisplayError::class);
                $error->setFormatParameters(htmlspecialchars($mLanguageDataParameters));
                $error->setMessage("SHOP_CONFIG_ERROR_INVALID_VALUE");
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($error);
            }
        }

        return $blValid;
    }
protected function isValidLanguageData($aLanguageData)
    {
        $blValid = true;
        $configValidator = $this->getNoJsValidator();
        foreach ($aLanguageData as $mLanguageDataParameters) {
            if (is_array($mLanguageDataParameters)) {
                // Recursion till we gonna have a string.
                $blDeepResult = $this->isValidLanguageData($mLanguageDataParameters);
                $blValid = $blDeepResult === false ? $blDeepResult : $blValid;
            } elseif (!$configValidator->isValid($mLanguageDataParameters)) {
                $blValid = false;
                $error = oxNew(\OxidEsales\Eshop\Core\DisplayError::class);
                $error->setFormatParameters(htmlspecialchars($mLanguageDataParameters));
                $error->setMessage("SHOP_CONFIG_ERROR_INVALID_VALUE");
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($error);
            }
        }

        return $blValid;
    }
protected function isValidLanguageData ( $ aLanguageData ) { $ blValid = true ; $ configValidator = $ this -> getNoJsValidator ( ) ; foreach ( $ aLanguageData as $ mLanguageDataParameters ) { if ( is_array ( $ mLanguageDataParameters ) ) { // Recursion till we gonna have a string. $ blDeepResult = $ this -> isValidLanguageData ( $ mLanguageDataParameters ) ; $ blValid = $ blDeepResult === false ? $ blDeepResult : $ blValid ; } elseif ( ! $ configValidator -> isValid ( $ mLanguageDataParameters ) ) { $ blValid = false ; $ error = oxNew ( \ OxidEsales \ Eshop \ Core \ DisplayError :: class ) ; $ error -> setFormatParameters ( htmlspecialchars ( $ mLanguageDataParameters ) ) ; $ error -> setMessage ( "SHOP_CONFIG_ERROR_INVALID_VALUE" ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> addErrorToDisplay ( $ error ) ; } } return $ blValid ; }
Validates provided language data and sets error to view in case it is not valid.

@param array $aLanguageData

@return bool
Validates provided language data and sets error to view in case it is not valid .