Detect browser language [Enterprise]
Mar 1, 2014 5:54 pm by advwebbing
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
Mar 3, 2014 4:47 pm by advwebbing
any suggestion?
Re: Detect browser language [Enterprise]
Mar 4, 2014 7:15 am by Edvard
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 code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Graphic translation for every language is missing | Dec 19, 2018 7:54 am | Replies: 1 | Post by: Daryl Dixon |
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |
Change language automatically | Nov 26, 2018 9:29 pm | Replies: 3 | Post by: Antilb |