0

I am developing multilanguage website with codeigniter. There are different language folders with _lang.php files in the application/language folder. However, it reads only in from english folder.

<?php echo $this->lang->line('share_face');?>

Could you tel me please what is the problem? Thanks in advance.

Nan
  • 25
  • 1
  • 8
  • Did you do `$this->lang->load('filename', 'language');` to load your correct language? – sotoz Apr 21 '16 at 07:17
  • I located that file in the controller in the constract function? Is that right? – Nan Apr 21 '16 at 07:31
  • If your language is loaded correctly, then I suggest you to use the `lang('share_face');` function. It is better to use, and fortunately it is shorter too. :) – skyyler Apr 21 '16 at 07:40
  • @Nan check this answer http://stackoverflow.com/questions/1328420/the-best-way-to-make-codeigniter-website-multi-language-calling-from-lang-array?rq=1 . It has all the information you need to successfully enable multilingualism on your site – sotoz Apr 21 '16 at 07:42
  • @ sotoz , thanks a lot, looks informative i will read that – Nan Apr 21 '16 at 08:44

0 Answers0