Welcome to the LimeSurvey Community Forum

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

Customising/Localising error messages

More
11 years 2 weeks ago #93591 by XimG
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 topic has been locked.
More
11 years 2 weeks ago #93592 by Ben_V
Replied by Ben_V on topic Customising/Localising error messages
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

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)
The topic has been locked.
More
11 years 2 weeks ago #93593 by XimG
Replied by XimG on topic Customising/Localising error messages
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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93602 by DenisChenu
Replied by DenisChenu on topic Customising/Localising error messages
What is your version ?

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

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
11 years 2 weeks ago #93604 by XimG
Replied by XimG on topic Customising/Localising error messages
I'm using Limesurvey 2.00+ Build 130226
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93606 by DenisChenu
Replied by DenisChenu on topic Customising/Localising error messages

XimG wrote: I'm using Limesurvey 2.00+ Build 130226

Yes,

confirmed in the source code: seem to always use:
Code:
$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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: XimG
The topic has been locked.
More
11 years 2 weeks ago #93609 by XimG
Replied by XimG on topic Customising/Localising error messages
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 topic has been locked.
More
11 years 2 weeks ago - 11 years 2 weeks ago #93616 by Ben_V
Replied by Ben_V on topic Customising/Localising error messages
Encontrado!

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


=> oJo con las actualizaciones ;)

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: 11 years 2 weeks ago by Ben_V.
The following user(s) said Thank You: XimG
The topic has been locked.
More
11 years 2 weeks ago #93622 by XimG
Replied by XimG on topic Customising/Localising error messages
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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93623 by holch
Replied by holch on topic Customising/Localising error messages
It means that whenever there is an update of Spanish your changes will be overwritten.

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.
More
11 years 2 weeks ago #93626 by XimG
Replied by XimG on topic Customising/Localising error messages
Correct me if I'm wrong, but if I edit the es.po file in my database, it won't be overwritten unless I run an update.

In that case, I guess I can back up the file and replace the one installed with the update.
The topic has been locked.
More
11 years 2 weeks ago #93632 by Ben_V
Replied by Ben_V on topic Customising/Localising error messages

It means that whenever there is an update of Spanish your changes will be overwritten.

In the other hand if your modification is not specific to your sole use but could be an improvment for all users, it could take part of the original translation.

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)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose