source/Setup/Language.php
public function getText($sTextIdent)
    {
        if ($this->_aLangData === null) {
            $this->_aLangData = [];
            $sLangFilePath = getShopBasePath() . EditionPathProvider::SETUP_DIRECTORY . '/' . ucfirst($this->getLanguage()) . '/lang.php';
            if (file_exists($sLangFilePath) && is_readable($sLangFilePath)) {
                $aLang = [];
                include $sLangFilePath;
                $this->_aLangData = array_merge($aLang, $this->getAdditionalMessages());
            }
        }

        return isset($this->_aLangData[$sTextIdent]) ? $this->_aLangData[$sTextIdent] : null;
    }
public function getText($sTextIdent)
    {
        if ($this->_aLangData === null) {
            $this->_aLangData = [];
            $sLangFilePath = getShopBasePath() . EditionPathProvider::SETUP_DIRECTORY . '/' . ucfirst($this->getLanguage()) . '/lang.php';
            if (file_exists($sLangFilePath) && is_readable($sLangFilePath)) {
                $aLang = [];
                include $sLangFilePath;
                $this->_aLangData = array_merge($aLang, $this->getAdditionalMessages());
            }
        }

        return isset($this->_aLangData[$sTextIdent]) ? $this->_aLangData[$sTextIdent] : null;
    }
public function getText ( $ sTextIdent ) { if ( $ this -> _aLangData === null ) { $ this -> _aLangData = [ ] ; $ sLangFilePath = getShopBasePath ( ) . EditionPathProvider :: SETUP_DIRECTORY . '/' . ucfirst ( $ this -> getLanguage ( ) ) . '/lang.php' ; if ( file_exists ( $ sLangFilePath ) && is_readable ( $ sLangFilePath ) ) { $ aLang = [ ] ; include $ sLangFilePath ; $ this -> _aLangData = array_merge ( $ aLang , $ this -> getAdditionalMessages ( ) ) ; } } return isset ( $ this -> _aLangData [ $ sTextIdent ] ) ? $ this -> _aLangData [ $ sTextIdent ] : null ; }
Translates passed index

@param string $sTextIdent translation index

@return string
Translates passed index