41 $langmanpath = XOOPS_TRUST_PATH.
'/libs/altsys/class/D3LanguageManager.class.php' ;
42 if (! file_exists($langmanpath)) {
43 die(
'install the latest altsys') ;
45 require_once($langmanpath) ;
46 $this->langman = D3LanguageManager::getInstance() ;
47 $this->langman->language = $this->mLanguageName ;
55 if (! $this->theme_lang_checked) {
56 $root =& XCube_Root::getSingleton() ;
57 if (! empty($root->mContext->mXoopsConfig[
'theme_set'])) {
58 $langdir = XOOPS_THEME_PATH.
'/'.$root->mContext->mXoopsConfig[
'theme_set'].
'/language' ;
59 if (file_exists($langdir)) {
60 $langfile = $langdir.
'/'.$this->mLanguageName.
'.php' ;
61 $engfile = $langdir.
'/english.php' ;
62 if (file_exists($langfile)) {
63 require_once $langfile ;
64 } elseif (file_exists($engfile)) {
65 require_once $engfile ;
68 $this->theme_lang_checked = true ;
73 $this->langman->read($fileBodyName.
'.php', $dirname) ;