Translating "Other" prompt (List Questions)

More
5 years 3 months ago #74570 by tacman1123
tacman1123 created the topic: Translating "Other" prompt (List Questions)
I have a survey that is not in English as its base language. There is a radio question that I have set to "Allow Other", and in the prompt box I put in the base language prompt.

How do I set it so that I can have my custom "Other" prompt translated? There's no spot for it, and the .po file assumes English as the core language, so I can't simply add it there.

Alternatively, should I be using an English-language "Other" phrase for that question, and THEN translate it to the base language in the .po file? Counter-intuitive, but it makes sense if you treat the "Other Prompt" as a system prompt.

Tac

Please Log in to join the conversation.

More
5 years 3 months ago #74572 by Mazi
Mazi replied the topic: Translating "Other" prompt (List Questions)
If the survey uses only one language have a look at the advanced question setting "other replace text".

Multilingual question attributes will be available at Limesurvey 2.0.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #74579 by Ben_V
Ben_V replied the topic: Translating "Other" prompt (List Questions)
If you are using 1.91 version (doesn't work with 1.90)

Paste in the field to change the label for "other" (/!\ adapt)
<span class="en">New label</span><span class="fr">Nouveau label</span>
and add to your CSS:
html:lang(en) .fr{display:none}
html:lang(fr) .en{display:none}

Works for me!

More info (in french forum) here

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 5 years 3 months ago by Ben_V.
The following user(s) said Thank You: tacman1123

Please Log in to join the conversation.

More
5 years 3 months ago #74583 by Mazi
Mazi replied the topic: Translating "Other" prompt (List Questions)


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #74586 by Ben_V
Ben_V replied the topic: Translating "Other" prompt (List Questions)
Thanks Mazi!

As for replacing "other", this method works and can be useful to set the ''Answer prefix'' & "Answer suffix" (and probably in more cases) when present in the display settings of some question types, like numerical input...

Obviously the lang or class attributes have to be the same than written into the <html> tag:
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="en" lang="en">

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 5 years 3 months ago by Ben_V.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now