Welcome Guest, Not a member yet? Register   Sign In
How to make a multi country web site? (Best practices)
#5

[eluser]xwero[/eluser]
pyromaniac you hook is based on a query string url, $_GET['lang'], and as the GET global is cleaned by CI you should add an $_SERVER['INFO_PATH'] and related checks to make the hook work with non query string urls.

Nonox like simonmaddox mentioned, it's not because the ip located in some country the language of the country should be the default. I think you better get the user_agent preferred language first and use the country language as a secondary default.
I'm from Belgium and we have three official languages, how would you solve a case like that based on country ip?


Messages In This Thread
How to make a multi country web site? (Best practices) - by El Forum - 01-06-2009, 12:55 PM
How to make a multi country web site? (Best practices) - by El Forum - 01-06-2009, 04:30 PM
How to make a multi country web site? (Best practices) - by El Forum - 01-06-2009, 06:19 PM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 04:49 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 05:24 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 06:11 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 06:48 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 07:02 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-07-2009, 08:07 AM
How to make a multi country web site? (Best practices) - by El Forum - 01-09-2009, 06:01 AM
How to make a multi country web site? (Best practices) - by El Forum - 11-16-2009, 02:13 PM
How to make a multi country web site? (Best practices) - by El Forum - 11-16-2009, 06:11 PM
How to make a multi country web site? (Best practices) - by El Forum - 06-17-2011, 01:36 AM
How to make a multi country web site? (Best practices) - by El Forum - 07-26-2012, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB