Auto detect the language of the browser/OS/User in Joomla

Popular automatic website translation tool

Auto detect the language of the browser/OS/User in Joomla

Postby emilio_n » Thu Feb 23, 2017 9:23 am

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.
emilio_n
 
Posts: 4
Joined: Thu Feb 23, 2017 9:17 am

Re: Auto detect the language of the browser/OS/User in Jooml

Postby Yana » Thu Feb 23, 2017 3:30 pm

Hi,

It will require some programming skills. You should be able to detect browser language by
locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4318
Joined: Thu Jan 12, 2012 6:21 pm

Re: Auto detect the language of the browser/OS/User in Jooml

Postby emilio_n » Fri Feb 24, 2017 4:47 am

Thanks Yana,
Any tips about where/how to implement this in a joomla?
Anybody that do already? :-D

Thanks.
emilio_n
 
Posts: 4
Joined: Thu Feb 23, 2017 9:17 am

Re: Auto detect the language of the browser/OS/User in Jooml

Postby Edvard » Mon Feb 27, 2017 4:34 am

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4346
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux