Forum Archive - [Removed]

[Removed]
May 15, 2012 7:42 pm by Develio13
I've removed the code from here as decisions further up have decided I'm not allowed to share the code used to achieve the final result, as it's to be used as an advantage to our company's site features that others have yet to be able to implement. (Not saying others haven't already done it, as it's definitely possible.) What was the code for? An automatic redirect on visit to display the site in the clients native language, such as an iPad set to 'German' will see the German version of the site, or a google account set to Japanese will see the Japanese version in Google Chrome, or a Korean Windows PC will see the Korean version in Internet Explorer and so on.
Re: .htaccess automatic redirect based on browser language?
May 15, 2012 8:03 pm by Edvard
You may use %{HTTP:X-GT-Lang} in RewriteCond to detect the requests made from our server to avoid the infinite loop. I think it would be easier to do the same with PHP in your index.php. In that case you can use $_SERVER['HTTP_X_GT_LANG'] variable to detect requests from us. Also take into account that sometimes users may want to use the default instead of their browser defined language. So cookies will help to achieve that too.

SIMILAR TOPICS

Styles Removed on TranslateMar 30, 2018 7:52 pmReplies: 1Post by: gorgeconnect
Gtw (folder "gtw") have been removed from official repositorNov 18, 2015 8:11 pmReplies: 1Post by: LifeIncome
Translate Method On Fly Removed?Nov 26, 2011 5:24 pmReplies: 4Post by: Joshua
[Solved] Formatting is removed in translationApr 8, 2011 4:08 pmReplies: 7Post by: Playalosarcos

Try GTranslate with a free 15 day trial