Languague detection

Mehr
3 Jahre 5 Monate her #117975 von arunicbe
arunicbe erstellte das Thema 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?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Jahre 5 Monate her - 3 Jahre 5 Monate her #117983 von tpartner
tpartner antwortete auf das Thema: 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.
Letzte Änderung: 3 Jahre 5 Monate her von tpartner.
Folgende Benutzer bedankten sich: arunicbe

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Jahre 5 Monate her #117987 von arunicbe
arunicbe antwortete auf das Thema: Languague detection
Is it possible to do without redirection?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Jahre 5 Monate her #117990 von jelo
jelo antwortete auf das Thema: 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
Folgende Benutzer bedankten sich: holch, Ben_V

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Jahre 5 Monate her #118006 von holch
holch antwortete auf das Thema: 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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha