Welcome Guest, Not a member yet? Register   Sign In
switching default lang in config.php
#1

[eluser]Ngulo[/eluser]
hi all,

i'm wondering how to switch language in my site...

I've some different language packs in my /language directory.

this is the scheme:
Code:
-language
    -en
    ----en_lang.php
    -pt
    ----pt_lang.php
    -sp
    ----sp_lang.php

now i would like to switch the default language into config.php ($config['language'])
by a session data that i use to set like this:
Code:
$param = $this->uri->segment(3);
$this->session->set_userdata('site_lang',$param)

so where i can retrieve session->userdata('site_lang'); and put my new session site language for all helpers ,libraries and so on... ??
thanks guys Wink


Messages In This Thread
switching default lang in config.php - by El Forum - 09-05-2010, 07:58 AM
switching default lang in config.php - by El Forum - 09-05-2010, 10:57 AM
switching default lang in config.php - by El Forum - 09-05-2010, 12:54 PM
switching default lang in config.php - by El Forum - 09-05-2010, 04:12 PM
switching default lang in config.php - by El Forum - 09-06-2010, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB