Welcome, Guest
Username: Password: Remember me

TOPIC: Translating "Other" prompt (List Questions)

Translating "Other" prompt (List Questions) 2 years 9 months ago #74570

  • tacman1123
  • tacman1123's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 125
  • Karma: 1
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
The administrator has disabled public write access.

Re: Translating "Other" prompt (List Questions) 2 years 9 months ago #74572

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Translating "Other" prompt (List Questions) 2 years 9 months ago #74579

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1147
  • Thank you received: 273
  • Karma: 79
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: tacman1123

Re: Translating "Other" prompt (List Questions) 2 years 9 months ago #74583

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Translating "Other" prompt (List Questions) 2 years 9 months ago #74586

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1147
  • Thank you received: 273
  • Karma: 79
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.216 seconds
Donation Image