I want the user to select his language from any sub page on my website. The best solution, to store each user language are sessions.
My website default language is English, but how should I load other language that user select? I guess I should do it like this:
$this->lang->load('my_language_file', $this->session->userdata('language'));
But this way, I'd have to load the language in every controller.
Isn't there a way, to select user language from session globally? So I could use $this->lang->line('some-message');
in every place on my website?