automatically change to language of OS

Popular automatic website translation tool

automatically change to language of OS

Postby pava » Wed Apr 05, 2017 8:14 pm

Hello, I am use cloud version of Gtranslate. Please how I can make that language automatically change to language of OS what visitor have? Example if have En translated language to open mydomain.com/en
Now I have just en language in cloud. But example if somebody open with German OS to open also en version translated. Thank you for help.
pava
 
Posts: 3
Joined: Wed Apr 05, 2017 8:11 pm

Re: automatically change to language of OS

Postby Yana » Thu Apr 06, 2017 3:58 pm

Hi
We do not recommend auto detection and do not provide any code for that. But it is possible.
It will require some programming skills. You should be able to detect browser language by
locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']); and change the 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: 4456
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron

Time : 0.049s | 14 Queries | GZIP : Off