source/Core/Language.php
public function getAdminTplLanguageArray()
    {
        if ($this->_aAdminTplLanguageArray === null) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

            $aLangArray = $this->getLanguageArray();
            $this->_aAdminTplLanguageArray = [];

            $sSourceDir = $myConfig->getAppDir() . 'views/admin/';
            foreach ($aLangArray as $iLangKey => $oLang) {
                $sFilePath = "{$sSourceDir}{$oLang->abbr}/lang.php";
                if (file_exists($sFilePath) && is_readable($sFilePath)) {
                    $this->_aAdminTplLanguageArray[$iLangKey] = $oLang;
                }
            }
        }

        // moving pointer to beginning
        reset($this->_aAdminTplLanguageArray);

        return $this->_aAdminTplLanguageArray;
    }
public function getAdminTplLanguageArray()
    {
        if ($this->_aAdminTplLanguageArray === null) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

            $aLangArray = $this->getLanguageArray();
            $this->_aAdminTplLanguageArray = [];

            $sSourceDir = $myConfig->getAppDir() . 'views/admin/';
            foreach ($aLangArray as $iLangKey => $oLang) {
                $sFilePath = "{$sSourceDir}{$oLang->abbr}/lang.php";
                if (file_exists($sFilePath) && is_readable($sFilePath)) {
                    $this->_aAdminTplLanguageArray[$iLangKey] = $oLang;
                }
            }
        }

        // moving pointer to beginning
        reset($this->_aAdminTplLanguageArray);

        return $this->_aAdminTplLanguageArray;
    }
public function getAdminTplLanguageArray ( ) { if ( $ this -> _aAdminTplLanguageArray === null ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ aLangArray = $ this -> getLanguageArray ( ) ; $ this -> _aAdminTplLanguageArray = [ ] ; $ sSourceDir = $ myConfig -> getAppDir ( ) . 'views/admin/' ; foreach ( $ aLangArray as $ iLangKey => $ oLang ) { $ sFilePath = "{$sSourceDir}{$oLang->abbr}/lang.php" ; if ( file_exists ( $ sFilePath ) && is_readable ( $ sFilePath ) ) { $ this -> _aAdminTplLanguageArray [ $ iLangKey ] = $ oLang ; } } } // moving pointer to beginning reset ( $ this -> _aAdminTplLanguageArray ) ; return $ this -> _aAdminTplLanguageArray ; }
Returns languages array containing possible admin template translations

@return array
Returns languages array containing possible admin template translations