- Posts: 44
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Translation problem
- SherriChen
- Topic Author
- Offline
- Senior Member
Less
More
4 years 6 months ago #189300
by SherriChen
Translation problem was created by SherriChen
Hi,
I want to translate my survey into another language, so I add "Dutch" as an additional language in General settings.
In the survey, I have two questions:
A1 is an array text question with dropdown. The dropdown list has two options: go to school and go to work.
A2 is a long text question.
I set a condition ((A1_SQ001_SQ002.NAOK == "go to school")) for A2. So, A2 will only show when people choose "go to school" in A1.
The problem is I haven't found a place to translate condition. The condition ((A1_SQ001_SQ002.NAOK == "go to school")) only works in English version.
Is it possible to change the script in A1 to make the condition like "((A1_SQ001_SQ002.NAOK == "1")) " work? Or another solution?
Now part of the script in A1 is
$('.answer-item.column-2', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
<option value="">--Please choose--</option>\
<option value="1">go to school</option>\
<option value="2">go to work</option>\
</select>');
}
But only ((A1_SQ001_SQ002.NAOK == "go to school")) works, ((A1_SQ001_SQ002.NAOK == "1")) doesn't.
Can anyone help me? Thank you very much! I attached a sample survey.
I want to translate my survey into another language, so I add "Dutch" as an additional language in General settings.
In the survey, I have two questions:
A1 is an array text question with dropdown. The dropdown list has two options: go to school and go to work.
A2 is a long text question.
I set a condition ((A1_SQ001_SQ002.NAOK == "go to school")) for A2. So, A2 will only show when people choose "go to school" in A1.
The problem is I haven't found a place to translate condition. The condition ((A1_SQ001_SQ002.NAOK == "go to school")) only works in English version.
Is it possible to change the script in A1 to make the condition like "((A1_SQ001_SQ002.NAOK == "1")) " work? Or another solution?
Now part of the script in A1 is
$('.answer-item.column-2', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
<option value="">--Please choose--</option>\
<option value="1">go to school</option>\
<option value="2">go to work</option>\
</select>');
}
But only ((A1_SQ001_SQ002.NAOK == "go to school")) works, ((A1_SQ001_SQ002.NAOK == "1")) doesn't.
Can anyone help me? Thank you very much! I attached a sample survey.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12933
- Thank you received: 3979
4 years 6 months ago #189304
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Translation problem
Hi, Sherri
if you use this workaround to display drop-downs in this array(text), the text is stored.
But no problem:
Use the Expression Manager instead of the Condition Builder to enter the relevance equation:
(A1_SQ001_SQ002.NAOK == "go to school") or (A1_SQ001_SQ002.NAOK == "AAA")
Joffm
We always recommend to use Expression Manager; it's more flexible.
if you use this workaround to display drop-downs in this array(text), the text is stored.
But no problem:
Use the Expression Manager instead of the Condition Builder to enter the relevance equation:
(A1_SQ001_SQ002.NAOK == "go to school") or (A1_SQ001_SQ002.NAOK == "AAA")
Joffm
We always recommend to use Expression Manager; it's more flexible.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- SherriChen
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 0
4 years 6 months ago #189315
by SherriChen
Replied by SherriChen on topic Translation problem
Thanks a lot, Joffm! Perfect!!!
The topic has been locked.