source/Core/Language.php
protected function _getLangTranslationArray($iLang = null, $blAdmin = null, $aLangFiles = null)
    {
        startProfile("_getLangTranslationArray");

        $blAdmin = isset($blAdmin) ? $blAdmin : $this->isAdmin();
        $iLang = $this->_getCacheLanguageId($blAdmin, $iLang);
        $sCacheName = $this->_getLangFileCacheName($blAdmin, $iLang, $aLangFiles);

        if (!isset($this->_aLangCache[$sCacheName])) {
            $this->_aLangCache[$sCacheName] = [];
        }
        if (!isset($this->_aLangCache[$sCacheName][$iLang])) {
            // loading main lang files data
            $this->_aLangCache[$sCacheName][$iLang] = $this->_getLanguageFileData($blAdmin, $iLang, $aLangFiles);
        }

        stopProfile("_getLangTranslationArray");

        // if language array exists ..
        return (isset($this->_aLangCache[$sCacheName][$iLang]) ? $this->_aLangCache[$sCacheName][$iLang] : []);
    }
protected function _getLangTranslationArray($iLang = null, $blAdmin = null, $aLangFiles = null)
    {
        startProfile("_getLangTranslationArray");

        $blAdmin = isset($blAdmin) ? $blAdmin : $this->isAdmin();
        $iLang = $this->_getCacheLanguageId($blAdmin, $iLang);
        $sCacheName = $this->_getLangFileCacheName($blAdmin, $iLang, $aLangFiles);

        if (!isset($this->_aLangCache[$sCacheName])) {
            $this->_aLangCache[$sCacheName] = [];
        }
        if (!isset($this->_aLangCache[$sCacheName][$iLang])) {
            // loading main lang files data
            $this->_aLangCache[$sCacheName][$iLang] = $this->_getLanguageFileData($blAdmin, $iLang, $aLangFiles);
        }

        stopProfile("_getLangTranslationArray");

        // if language array exists ..
        return (isset($this->_aLangCache[$sCacheName][$iLang]) ? $this->_aLangCache[$sCacheName][$iLang] : []);
    }
protected function _getLangTranslationArray ( $ iLang = null , $ blAdmin = null , $ aLangFiles = null ) { startProfile ( "_getLangTranslationArray" ) ; $ blAdmin = isset ( $ blAdmin ) ? $ blAdmin : $ this -> isAdmin ( ) ; $ iLang = $ this -> _getCacheLanguageId ( $ blAdmin , $ iLang ) ; $ sCacheName = $ this -> _getLangFileCacheName ( $ blAdmin , $ iLang , $ aLangFiles ) ; if ( ! isset ( $ this -> _aLangCache [ $ sCacheName ] ) ) { $ this -> _aLangCache [ $ sCacheName ] = [ ] ; } if ( ! isset ( $ this -> _aLangCache [ $ sCacheName ] [ $ iLang ] ) ) { // loading main lang files data $ this -> _aLangCache [ $ sCacheName ] [ $ iLang ] = $ this -> _getLanguageFileData ( $ blAdmin , $ iLang , $ aLangFiles ) ; } stopProfile ( "_getLangTranslationArray" ) ; // if language array exists .. return ( isset ( $ this -> _aLangCache [ $ sCacheName ] [ $ iLang ] ) ? $ this -> _aLangCache [ $ sCacheName ] [ $ iLang ] : [ ] ) ; }
get language array from lang translation file

@param int   $iLang      optional language
@param bool  $blAdmin    admin mode switch
@param array $aLangFiles language files to load [optional]

@return array
get language array from lang translation file