source/Core/Language.php
public function setTplLanguage($iLang = null)
    {
        $this->_iTplLanguageId = isset($iLang) ? (int) $iLang : $this->getBaseLanguage();
        if ($this->isAdmin()) {
            $aLanguages = $this->getAdminTplLanguageArray();
            if (!isset($aLanguages[$this->_iTplLanguageId])) {
                $this->_iTplLanguageId = key($aLanguages);
            }
        }

        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('tpllanguage', $this->_iTplLanguageId);

        return $this->_iTplLanguageId;
    }
public function setTplLanguage($iLang = null)
    {
        $this->_iTplLanguageId = isset($iLang) ? (int) $iLang : $this->getBaseLanguage();
        if ($this->isAdmin()) {
            $aLanguages = $this->getAdminTplLanguageArray();
            if (!isset($aLanguages[$this->_iTplLanguageId])) {
                $this->_iTplLanguageId = key($aLanguages);
            }
        }

        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('tpllanguage', $this->_iTplLanguageId);

        return $this->_iTplLanguageId;
    }
public function setTplLanguage ( $ iLang = null ) { $ this -> _iTplLanguageId = isset ( $ iLang ) ? ( int ) $ iLang : $ this -> getBaseLanguage ( ) ; if ( $ this -> isAdmin ( ) ) { $ aLanguages = $ this -> getAdminTplLanguageArray ( ) ; if ( ! isset ( $ aLanguages [ $ this -> _iTplLanguageId ] ) ) { $ this -> _iTplLanguageId = key ( $ aLanguages ) ; } } \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'tpllanguage' , $ this -> _iTplLanguageId ) ; return $ this -> _iTplLanguageId ; }
Validates and sets templates language id

@param int $iLang Language id

@return null
Validates and sets templates language id