Welcome Guest, Not a member yet? Register   Sign In
Multilanguge site
#11

[eluser]jaswinder_rana[/eluser]
I think that will also work for users as you can create new column in user profile table and have them store their prefered language. Then load it in your constructor.

One thing I am not sure is if there is a way to load it once and have it done for whole site. If it's changed in one constructor, will it remain through out the whole execution time and in every class? If so then maybe auto load a central file which changes the language for that session when user is logged in.

Otherwise it needs to be done in every class.
#12

[eluser]jaswinder_rana[/eluser]
http://codeigniter.com/wiki/MY_Language/ might be of some help, I think.

Maybe overload language class with your own and then check for session value in constructor and load your own language.

Not sure if this is the way to go; just a thought




Theme © iAndrew 2016 - Forum software by © MyBB