Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Customising/Localising error messages

Customising/Localising error messages 1 year 5 months ago #93591

  • XimG
  • XimG's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Hi

I'm using Limesurvey for Spanish respondents and there are some messages that I would like to change from the Spanish version available at Limesurvey. However, I have not found them in the es.po file.

More specifically, I'm having trouble with a text string that is shown when no text is provided in an 'Other' textbox ("Si seleccionas 'Otros', por favor, explica tu elección en el área de texto que lo acompaña") .

I've looked for it thoroughly within the es.po file, but it is not there. I've also searched the forum and the documentation, but can't find how to modify this type of messages, other than the ones found in the .po files.

Thank you for any help in advance.
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93592

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1068
  • Thank you received: 235
  • Karma: 74
Have a quick look at the advanced settings of your question in case there is already an available setting for:

Label for 'Other:'
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...
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93593

  • XimG
  • XimG's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Thank you, Ben_V, but the message I need to modify is a validation error message that appears when a mandatory question has not been answered or there is something missing in the question, not the label of the field 'Other'.
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93602

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 241
What is your version ?

Think "other" label are used too with alert message.

Denis
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93604

  • XimG
  • XimG's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
I'm using Limesurvey 2.00+ Build 130226
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93606

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 241
XimG wrote:
I'm using Limesurvey 2.00+ Build 130226
Yes,

confirmed in the source code: seem to always use:
$othertext=$qattr['other_replace_text'])
sprintf($this->gT("If you choose '%s' please also specify your choice in the accompanying text field."),$othertext);
If it not work under some condition, please fill a bug report with a lss example file.

Denis
The administrator has disabled public write access.
The following user(s) said Thank You: XimG

Customising/Localising error messages 1 year 5 months ago #93609

  • XimG
  • XimG's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Merci, Denis. That piece of code seems to be the one I'm talking about.

Is it possible to modify it? If so, how and where could I find the Spanish string?
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93616

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1068
  • Thank you received: 235
  • Karma: 74
Encontrado!

Open your es.po file with poedit and look for 'accompanying' in the original strings

capt_2013-03-12.gif

=> oJo con las actualizaciones ;)
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: 1 year 5 months ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: XimG

Customising/Localising error messages 1 year 5 months ago #93622

  • XimG
  • XimG's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Merci beaucoup, Benoit!

That's the piece of code in the po that I was looking for... I didn't realise it was using a variable for other... and actually, I had already modified this string ;)

Sorry about the newbie question, but what do you mean with "being aware of updates"? The po file won't be automatically updated unless I run a version update, will it?

Thank you all for your replies.
The administrator has disabled public write access.

Customising/Localising error messages 1 year 5 months ago #93623

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
It means that whenever there is an update of Spanish your changes will be overwritten.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.187 seconds
Donation Image