Welcome Guest, Not a member yet? Register   Sign In
Change language runtime
#4

Well, since you already have a way of detecting a user's country, I believe you are already close to what you are looking for.

From the docs, you will need to store the particular language of a user in the session. So, you can use that to automatically display the current page/language to the user.

PHP Code:
$idiom $this->session->get_userdata('language');
$this->lang->load('error_messages'$idiom); 
Reply


Messages In This Thread
Change language runtime - by omid_student - 11-21-2021, 08:43 AM
RE: Change language runtime - by hxd - 11-21-2021, 09:09 PM
RE: Change language runtime - by omid_student - 11-22-2021, 12:58 PM
RE: Change language runtime - by alanmark1 - 11-24-2021, 06:58 PM
RE: Change language runtime - by miyaw21 - 11-25-2021, 03:10 AM
RE: Change language runtime - by sammyskills - 11-22-2021, 01:15 PM
RE: Change language runtime - by InsiteFX - 11-25-2021, 04:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB