/** * @access protected * @param $dirname module directory name * @param $fileBodyName language file body name */ function _loadLanguage($dirname, $fileBodyName) { static $trust_dirnames = array(); if (!isset($trust_dirnames[$dirname])) { $trust_dirnames[$dirname] = Legacy_Utils::getTrustDirnameByDirname($dirname); } $this->_loadFile(XOOPS_MODULE_PATH . '/' . $dirname . '/language/' . $this->mLanguageName . '/' . $fileBodyName . '.php') || $this->_loadFile(XOOPS_MODULE_PATH . '/' . $dirname . '/language/' . $this->getFallbackLanguage() . '/' . $fileBodyName . '.php') || $trust_dirnames[$dirname] && ($this->_loadFile(XOOPS_TRUST_PATH . '/modules/' . $trust_dirnames[$dirname] . '/language/' . $this->mLanguageName . '/' . $fileBodyName . '.php', $dirname) || $this->_loadFile(XOOPS_TRUST_PATH . '/modules/' . $trust_dirnames[$dirname] . '/language/' . $this->getFallbackLanguage() . '/' . $fileBodyName . '.php', $dirname)); }