Welcome Guest, Not a member yet? Register   Sign In
How to make Multilingual website in CodeIgniter 3
#3

The main thing to remember is that, whether you use a user setting or URI to indicate the current language, you can set the configured language (as early as possible), then all later calls to load language files will load the file for that language.

PHP Code:
$this->config->set_item('language'$this->current_language);

// load the file /application/language/{$this->current_language}/application_lang.php
$this->lang->load('application'); 
Reply


Messages In This Thread
RE: How to make Multilingual website in CodeIgniter 3 - by mwhitney - 07-27-2015, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB