Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

LImesurver not respecting the language selection

  • dleger
  • dleger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112424 by dleger
After I enter a token on the french page, it goes to english. I have the language switcher to change it, but is there a way I can ensure it won't get changed automatically and respect the selection I made previously?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112426 by holch
Did you set a language for the token? You can give each respondent the right language.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • dleger
  • dleger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112427 by dleger
I actually removed the language preference from the database. because many of the surveys dont have a person attached to it from the get go. We use tokens because we dont want it wide open.

So I can't use the language field.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112439 by tpartner
What version are you using?

In the latest version I find that the survey does start in the language selected in the token-entry screen.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • dleger
  • dleger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112449 by dleger
1.95... I've tried upgrading, but was having issues with my ISP's php... Even thought I had the right php, it kept saying I needed to upgrade the php.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112453 by tpartner
Try adding this to the end of template.js:

Code:
$(document).ready(function() {
  $('form#tokenform').submit(function(){
    $('form#tokenform input#lang').val($('select.languagechanger').val());
  });
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose