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

(11-21-2021, 08:43 AM)omid_student Wrote: Hi
On my shop website, I need to change shop language auto with user IP
For example, if a user is from Turkey, so load Turkey language or English language for America
I load English language default
I try to change the language in the config file but I cannot use the $this->db command and got error
I have country IPs in database and use query for detect user country with ip
And that is important check IP before set $config['language'] parameter
Thanks

(11-21-2021, 09:09 PM)hxd Wrote: Please read this docs

https://codeigniter.com/user_guide/outgo...-detectionio games
thanks a lot!
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