Automatic Language Inclusion

As of OpenCart 1.4.8+, language files can be called with a simpler merge option. I use this method in all my mods to keep them smaller. For versions of OpenCart v1.4.7 or older, you will need to make 2 small changes to the engine files to support this feature.

 

1. EDIT: system/engine/loader.php

2. FIND:

$this->language->load($language);

3. REPLACE WITH:

return $this->language->load($language);

4. Save

5. EDIT: system/library/language.php

6. FIND:

$this->data = array_merge($this->data, $_);

7. REPLACE WITH:

return $this->data = array_merge($this->data, $_);

 

Powered By OpenCart
OpenCartGuru.com © 2017