load language (HMVC)!

#1
[eluser]Ngua Go[/eluser]
I used HMVC !
I have language, url: modules/news/language/english/news_lang.php
on controller of 'shop module' i write:

Code:
$this->load->language('news', 'english');

but it don't load language, i see file: third_party/MX/Loader.php (line 108)
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $this->_module);
see file: system/core/lang.php (line 52)
Code:
function load($langfile = '', $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '')
I realize: Param $this->_module on CI::$APP->lang->load() not be known by function load()
There may be confusion ! I want call language from other modules! Please Help me !
Sorry for bad English !

#2
[eluser]Ngua Go[/eluser]
I solved the problem !
On third_party/MX/Loader.php, i change
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $this->_module);
to
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $langfile);

So now i can load lang of other module !

But when config autoload => error !


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.