How to customize missing answer notice

More
4 weeks 2 days ago #159820 by william71
william71 created the topic: How to customize missing answer notice
Hi,
I need to customize both the missing answer pop up and the red notice which indicates that mandatory answers are missing. Essentially, because they should sound more friendly in the context of our survey.

A grep search within all limesurvey files, that is:
grep -r -e 'muss beantwortet'
, returned:
locale/de/de.mo
locale/de-informal/de-informal.mo

Questions:
Is /local/de/de.mo the appropriate file to change the notice?
Which is the right way to edit this file, since it is a binary?

Many thanks and kind regards
Wilhelm

Please Log in to join the conversation.

More
4 weeks 2 days ago - 4 weeks 2 days ago #159823 by Joffm
Joffm replied the topic: How to customize missing answer notice
Hello, William,

to change the wording you have to download the *.po file (de.po) here: https://www.limesurvey.org/community/contribute/translations-status

This can be edited e.g. with "poedit" ( https://poedit.net/ )

Saving the file automatically creates the de.po and the de.m, which you upload to the locale-folder.

The look and feel of the red notice should be changeable by a bit of css
At the moment there is only:
.questionvalidcontainer .text-danger {
    font-weight: bold;
}

So either in "template.css" or directly in the question text add your desired changes, like "color:yellow", "font-style:italic", etc.

Best regards
Joffm
Last Edit: 4 weeks 2 days ago by Joffm.
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

More
4 weeks 2 days ago #159824 by tpartner
tpartner replied the topic: How to customize missing answer notice
More about modifying the translation files here - manual.limesurvey.org/Translating_LimeSurvey

I would create a new translation so it won't get overwritten when updating.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

More
4 weeks 2 days ago - 4 weeks 2 days ago #159825 by william71
william71 replied the topic: How to customize missing answer notice
Dear Joffm and tpartner,
many thanks, your answer was really helpful!
Wilhelm

(thanks!)
Last Edit: 4 weeks 2 days ago by william71.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!