- Posts: 8
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
It may work now but is prone to being overwritten when updating.I replaced the message on the Vanilla file with one in the translation file
{% set registerMsg1 = { 'en': 'Thank you for registering. You will receive an email shortly.', 'pt-BR': 'Portuguese-Br Thank you for registering...' } %} {% set registerMsg2 = { 'en': 'You may register for this survey but you have to wait for the {{sStartDate}} before starting the survey.', 'pt-BR': 'Portuguese-Br You may register for this survey but you have to...' } %} {% set registerMsg3 = { 'en': 'You may register for this survey if you wish to take part.', 'pt-BR': 'Portuguese-Br You may register for this survey if you wish...' } %} {% set registerMsg4 = { 'en': 'Enter your details below, and an email containing the link to participate in this survey will be sent immediately.', 'pt-BR': 'Portuguese-Br Enter your details below...' } %} {% set lang = aSurveyInfo.sLanguage %} {% if registerSuccess %} <p {{ aSurveyInfo.attr.registermessageb }} >{{ registerMsg1[lang] }}</p> {% else %} {% if sStartDate %} <p {{ aSurveyInfo.attr.registermessagea }} > {{ registerMsg2[lang] }}</p> {% else %} <p {{ aSurveyInfo.attr.registermessageb }} >{{ registerMsg3[lang] }}</p> {% endif %} <p {{ aSurveyInfo.attr.registermessagec }} >{{ registerMsg4[lang] }}</p> {% endif %} {% if not empty(aSurveyInfo.aErrors) %} <ul class='{{ aSurveyInfo.class.maincoldivdivbul }} alert alert-danger list-unstyled' {{ aSurveyInfo.attr.maincoldivdivbul }}> {% for key, error in aSurveyInfo.aErrors%} <li>{{ error }}</li> {% endfor %} </ul> {% endif %}