Download multiple language files in CodeIgniter

Can I load multiple language files for the same kind in CodeIgniter?

+4
source share
3 answers

Oh...

Well, that was pretty simple. I just uploaded two files using $this->lang->load() .

 $this->lang->load("lang_file1"); $this->lang->load("lang_file2"); 

Then after loading the view, I can use the lines from both files. But I'm not sure if the same line is in different lang files.

I also saw that you can even upload multiple views to CodeIgniter. Just download them sequentially, and CodeIgniter will combine them into one view.

+5
source

This example loads one class from the system library and one from the application library.

 $this->load->library(array( 'form_validation','form_validate_supplement')); 
0
source

zkanoca, which does not work if the same variables are used. Meanwhile, if this is not the case, it will not be bilingual at all, because you do not have a translation for the text that you have. You just split the variables into 2 files.

0
source

All Articles