Multilingual survey: Difference between revisions
From LimeSurvey Manual
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Alert|text=Under construction}} | {{Alert|text=Under construction}} | ||
Line 7: | Line 5: | ||
=How to hide the language switcher= | =How to hide the language switcher= | ||
In the case in which you decide to launch a multilingual survey, you will observe on the welcome page a drop-down menu that permits your respondents to select the language in which they wish to fill in your survey. | |||
However, in certain scenarios you wish to hide the respective option. There are many ways in which you can hide the language switcher. | |||
To | One method that we recommend is to edit the corresponding .twig file. Comment <nowiki>{% if aSurveyInfo.alanguageChanger.show == true %}</nowiki> and add <nowiki>{% if %false == true %}</nowiki> | ||
To do that, access the Themes section | |||
<center>[[File:]]</center> | <center>[[File:]]</center> | ||
<syntaxhighlight lang="php" enclose="div">upload_tmp_dir="/temp" | |||
session.save_path="/temp"</syntaxhighlight> | |||
Line 30: | Line 35: | ||
Edit the line that contains the following function: . The line should look like this in the end: | Edit the line that contains the following function: | ||
<syntaxhighlight lang="php" enclose="div">upload_tmp_dir="/temp" | |||
session.save_path="/temp"</syntaxhighlight> | |||
The line should look like this in the end: | |||
<center>[[File:]]</center> | |||
Now, the welcome page should look like this: | |||
<center>[[File:]]</center> |
Revision as of 13:54, 22 November 2018
How to hide the language switcher
In the case in which you decide to launch a multilingual survey, you will observe on the welcome page a drop-down menu that permits your respondents to select the language in which they wish to fill in your survey.
However, in certain scenarios you wish to hide the respective option. There are many ways in which you can hide the language switcher.
One method that we recommend is to edit the corresponding .twig file. Comment {% if aSurveyInfo.alanguageChanger.show == true %} and add {% if %false == true %}
To do that, access the Themes section
upload_tmp_dir="/temp"
session.save_path="/temp"
Click on the Theme editor button to edit the desired theme:
Look on the left side of the screen for the language_changer.twig file.
Edit the line that contains the following function:
upload_tmp_dir="/temp"
session.save_path="/temp"
The line should look like this in the end:
Now, the welcome page should look like this: