source/Core/Language.php
public function getEditLanguage()
    {
        if ($this->_iEditLanguageId === null) {
            if (!$this->isAdmin()) {
                $this->_iEditLanguageId = $this->getBaseLanguage();
            } else {
                $iLang = null;
                // choosing language ident
                // check if we really need to set the new language
                if ("saveinnlang" == \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView()->getFncName()) {
                    $iLang = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("new_lang");
                }
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? $this->getBaseLanguage() : $iLang;

                // validating language
                $this->_iEditLanguageId = $this->validateLanguage($iLang);

                // writing to session
                \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('editlanguage', $this->_iEditLanguageId);
            }
        }

        return $this->_iEditLanguageId;
    }
public function getEditLanguage()
    {
        if ($this->_iEditLanguageId === null) {
            if (!$this->isAdmin()) {
                $this->_iEditLanguageId = $this->getBaseLanguage();
            } else {
                $iLang = null;
                // choosing language ident
                // check if we really need to set the new language
                if ("saveinnlang" == \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView()->getFncName()) {
                    $iLang = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("new_lang");
                }
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? $this->getBaseLanguage() : $iLang;

                // validating language
                $this->_iEditLanguageId = $this->validateLanguage($iLang);

                // writing to session
                \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('editlanguage', $this->_iEditLanguageId);
            }
        }

        return $this->_iEditLanguageId;
    }
public function getEditLanguage ( ) { if ( $ this -> _iEditLanguageId === null ) { if ( ! $ this -> isAdmin ( ) ) { $ this -> _iEditLanguageId = $ this -> getBaseLanguage ( ) ; } else { $ iLang = null ; // choosing language ident // check if we really need to set the new language if ( "saveinnlang" == \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveView ( ) -> getFncName ( ) ) { $ iLang = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "new_lang" ) ; } $ iLang = ( $ iLang === null ) ? \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'editlanguage' ) : $ iLang ; $ iLang = ( $ iLang === null ) ? \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'editlanguage' ) : $ iLang ; $ iLang = ( $ iLang === null ) ? $ this -> getBaseLanguage ( ) : $ iLang ; // validating language $ this -> _iEditLanguageId = $ this -> validateLanguage ( $ iLang ) ; // writing to session \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'editlanguage' , $ this -> _iEditLanguageId ) ; } } return $ this -> _iEditLanguageId ; }
Returns editing object working language id

@return string
Returns editing object working language id