source/Core/Language.php
protected function _getLanguageMap($iLang, $blAdmin = null)
    {
        $blAdmin = isset($blAdmin) ? $blAdmin : $this->isAdmin();
        $sKey = $iLang . ((int) $blAdmin);
        if (!isset($this->_aLangMap[$sKey])) {
            $this->_aLangMap[$sKey] = [];
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

            $sMapFile = '';
            $sParentMapFile = $myConfig->getAppDir() . '/views/' . ($blAdmin ? 'admin' : $myConfig->getConfigParam("sTheme")) . '/' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang) . '/map.php';
            $sCustomThemeMapFile = $myConfig->getAppDir() . '/views/' . ($blAdmin ? 'admin' : $myConfig->getConfigParam("sCustomTheme")) . '/' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang) . '/map.php';

            if (file_exists($sCustomThemeMapFile) && is_readable($sCustomThemeMapFile)) {
                $sMapFile = $sCustomThemeMapFile;
            } elseif (file_exists($sParentMapFile) && is_readable($sParentMapFile)) {
                $sMapFile = $sParentMapFile;
            }

            if ($sMapFile) {
                include $sMapFile;
                $this->_aLangMap[$sKey] = $aMap;
            }
        }

        return $this->_aLangMap[$sKey];
    }
protected function _getLanguageMap($iLang, $blAdmin = null)
    {
        $blAdmin = isset($blAdmin) ? $blAdmin : $this->isAdmin();
        $sKey = $iLang . ((int) $blAdmin);
        if (!isset($this->_aLangMap[$sKey])) {
            $this->_aLangMap[$sKey] = [];
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

            $sMapFile = '';
            $sParentMapFile = $myConfig->getAppDir() . '/views/' . ($blAdmin ? 'admin' : $myConfig->getConfigParam("sTheme")) . '/' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang) . '/map.php';
            $sCustomThemeMapFile = $myConfig->getAppDir() . '/views/' . ($blAdmin ? 'admin' : $myConfig->getConfigParam("sCustomTheme")) . '/' . \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageAbbr($iLang) . '/map.php';

            if (file_exists($sCustomThemeMapFile) && is_readable($sCustomThemeMapFile)) {
                $sMapFile = $sCustomThemeMapFile;
            } elseif (file_exists($sParentMapFile) && is_readable($sParentMapFile)) {
                $sMapFile = $sParentMapFile;
            }

            if ($sMapFile) {
                include $sMapFile;
                $this->_aLangMap[$sKey] = $aMap;
            }
        }

        return $this->_aLangMap[$sKey];
    }
protected function _getLanguageMap ( $ iLang , $ blAdmin = null ) { $ blAdmin = isset ( $ blAdmin ) ? $ blAdmin : $ this -> isAdmin ( ) ; $ sKey = $ iLang . ( ( int ) $ blAdmin ) ; if ( ! isset ( $ this -> _aLangMap [ $ sKey ] ) ) { $ this -> _aLangMap [ $ sKey ] = [ ] ; $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ sMapFile = '' ; $ sParentMapFile = $ myConfig -> getAppDir ( ) . '/views/' . ( $ blAdmin ? 'admin' : $ myConfig -> getConfigParam ( "sTheme" ) ) . '/' . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getLanguageAbbr ( $ iLang ) . '/map.php' ; $ sCustomThemeMapFile = $ myConfig -> getAppDir ( ) . '/views/' . ( $ blAdmin ? 'admin' : $ myConfig -> getConfigParam ( "sCustomTheme" ) ) . '/' . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getLanguageAbbr ( $ iLang ) . '/map.php' ; if ( file_exists ( $ sCustomThemeMapFile ) && is_readable ( $ sCustomThemeMapFile ) ) { $ sMapFile = $ sCustomThemeMapFile ; } elseif ( file_exists ( $ sParentMapFile ) && is_readable ( $ sParentMapFile ) ) { $ sMapFile = $ sParentMapFile ; } if ( $ sMapFile ) { include $ sMapFile ; $ this -> _aLangMap [ $ sKey ] = $ aMap ; } } return $ this -> _aLangMap [ $ sKey ] ; }
Returns language map array

@param int  $iLang   language index
@param bool $blAdmin admin mode [default NULL]

@return array
Returns language map array