Languague detection

More
2 years 9 months ago #117975 by arunicbe
arunicbe created the topic: Languague detection
I have a survey with three languages. Is possible to detect the browser's language and take the user to relevant language site?

Please Log in to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #117983 by tpartner
tpartner replied the topic: Languague detection
You could first send respondents to a remote PHP script that uses HTTP_ACCEPT_LANGUAGE to detect the browser language and the redirects to the appropriate survey.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 9 months ago by tpartner.
The following user(s) said Thank You: arunicbe

Please Log in to join the conversation.

More
2 years 9 months ago #117987 by arunicbe
arunicbe replied the topic: Languague detection
Is it possible to do without redirection?

Please Log in to join the conversation.

More
2 years 9 months ago #117990 by jelo
jelo replied the topic: Languague detection
I wouldn't do to much detection. E.g. I have a few languages in my browser marked to accept. Sometimes a website is doing all the detection and won't allow me to change to a different language.
Sometimes the currency to pay is already limited because the programmer wanted to be very clever.

You can use the Language Switch to allow probands to change the language
manual.limesurvey.org/Question_type_-_Language_switch

You can use Javascript/Jquery to detect browserlanguage and do a redirection with a link to your survey with a language code added to the URL, but I don't think it's worth the work. Browser language NOT always identical to language preference of the user which is using the browser.

For Javascript detection:
jsfiddle.net/xareyo/V7yDy/

Did you already tried, if Limesurvey is displaying the default language even if a different browser language is defined as default in the browser options?

Limesurvey isn't offering a browser detection out of the box. But DenisChenu is the man. He has told me that we don't need to do a feature request (had one a few years ago, but it was deleted with the old feature request website), since he already has a browser detection routine working. www.limesurvey.org/en/profile/userprofile/DenisChenu
The following user(s) said Thank You: holch, Ben_V

Please Log in to join the conversation.

More
2 years 9 months ago #118006 by holch
holch replied the topic: Languague detection
I totally agree with Jelo!

Language detection seems often like a good idea, but mostly it is not. My browser for example is in Portuguese, my Windows as well. But I would rather choose English or German for my survey. Sometimes people use the computer of others, in a different country, etc.

To be honest, I don't think that language detection is worth the hassle. I know very few people that would actually have a problem with choosing their language from a menu.

Even worse are those that detect the device and want to force me to the mobile versions of websites on a 10" tablet. That doesn't make any sense, the mobile version usually works a lot worse on such a display than the normal website version. Some at least give you the chance to go back to the normal desktop version. Most mobile sites are really bad when used on a bigger screen than a mobile phone. I bet that on those new devices with 5" or more the normal websites also work better than the mobile versions. RANT OVER. :-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!