Forum Archive - Detect browser language [Enterprise]

Detect browser language [Enterprise]
Mar 1, 2014 5:54 pm by advwebbing
Hi, I'm using the ENTERPRISE version. Is it possible to detect users' browser language and automatically make the site/post appear in that language (if available) for them? Thanks, Luk
Re: Detect browser language [Enterprise]
Mar 3, 2014 4:47 pm by advwebbing
any suggestion?
Re: Detect browser language [Enterprise]
Mar 4, 2014 7:15 am by Edvard
Hi, You need to use 2 variables in your code to make appropriate redirects: $_SERVER['HTTP_X_GT_LANG'] - not set if original language is selected, selected language code (en, es, fr, it, etc...) $user_lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); - browser language code ex (en, es, fr, de, etc...) You will need to write code yourself using this 2 variables, we do not suggest using this method and do not provide code. Thanks!

SIMILAR TOPICS

Large numbers of crawl errors with double language codeJan 24, 2019 1:43 amReplies: 1Post by: natastna2
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
How to remove mobile Language Select Button transparencyDec 5, 2018 10:06 pmReplies: 10Post by: JeffTR
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb

Try GTranslate with a free 15 day trial