Auto detect the language of the browser/OS/User in Joomla
Feb 23, 2017 5:23 am by emilio_n
Feb 23, 2017 5:23 am by emilio_n
Hi There,
Trying the Startup subscription, most of the things looks great.
I am running a Joomla Site and I want to know how to auto detect the browser language of the user to show this language by default.
I have a Social community in the site made with EasySocial and could be great is the user can select his/her desired language in the profile and GTranslate use this for the selection too.
I suppose the second one is not easy to implement, but How I make the first one?
Thanks!
Emilio.
Re: Auto detect the language of the browser/OS/User in Jooml
Feb 23, 2017 11:30 am by Yana
Feb 23, 2017 11:30 am by Yana
Hi,
It will require some programming skills. You should be able to detect browser language by
locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
Re: Auto detect the language of the browser/OS/User in Jooml
Feb 24, 2017 12:47 am by emilio_n
Feb 24, 2017 12:47 am by emilio_n
Thanks Yana,
Any tips about where/how to implement this in a joomla?
Anybody that do already?
Thanks.
Re: Auto detect the language of the browser/OS/User in Jooml
Feb 27, 2017 12:34 am by Edvard
Feb 27, 2017 12:34 am by Edvard
Hi,
We do not recommend auto detection and do not provide any code for that. But it is possible.
You can use it at your own risk.
Thanks!
SIMILAR TOPICS
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
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 |