source/Application/Controller/Admin/LanguageMain.php
protected function _checkLangTranslations($sOxId)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $sDir = dirname($myConfig->getTranslationsDir('lang.php', $sOxId));

        if (empty($sDir)) {
            $oEx = oxNew(\OxidEsales\Eshop\Core\Exception\ExceptionToDisplay::class);
            $oEx->setMessage('LANGUAGE_NOTRANSLATIONS_WARNING');
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($oEx);
        }
    }
protected function _checkLangTranslations($sOxId)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $sDir = dirname($myConfig->getTranslationsDir('lang.php', $sOxId));

        if (empty($sDir)) {
            $oEx = oxNew(\OxidEsales\Eshop\Core\Exception\ExceptionToDisplay::class);
            $oEx->setMessage('LANGUAGE_NOTRANSLATIONS_WARNING');
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($oEx);
        }
    }
protected function _checkLangTranslations ( $ sOxId ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ sDir = dirname ( $ myConfig -> getTranslationsDir ( 'lang.php' , $ sOxId ) ) ; if ( empty ( $ sDir ) ) { $ oEx = oxNew ( \ OxidEsales \ Eshop \ Core \ Exception \ ExceptionToDisplay :: class ) ; $ oEx -> setMessage ( 'LANGUAGE_NOTRANSLATIONS_WARNING' ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> addErrorToDisplay ( $ oEx ) ; } }
Check selected language has translation file lang.php
If not - displays warning

@param string $sOxId language abbervation
Check selected language has translation file lang . php If not - displays warning