Esempio n. 1
0
 /**
  * Load language file of xml type
  *
  * @param string $path Path of the language file
  * @return string file name
  */
 function _loadXmlLang($path)
 {
     if (!$path) {
         return;
     }
     $oXmlLangParser = new XmlLangParser($path . (substr_compare($path, '/', -1) !== 0 ? '/' : '') . 'lang.xml', $this->lang_type);
     return $oXmlLangParser->compile();
 }
Esempio n. 2
0
 /**
  * Load language file of xml type
  *
  * @param string $path Path of the language file
  * @return string file name
  */
 function _loadXmlLang($path)
 {
     if (substr($path, -1) != '/') {
         $path .= '/';
     }
     $file = $path . 'lang.xml';
     $oXmlLangParser = new XmlLangParser($file, $this->lang_type);
     $file = $oXmlLangParser->compile();
     return $file;
 }