Actions

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=


There are many ways in which you can hide the language switched that is displayed on the welcome page.


We recommend you to edit the corresponding .twig file. Comment <nowiki>{% if aSurveyInfo.alanguageChanger.show == true %}</nowiki> and add <nowiki>{% if %false == true %}</nowiki>
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 hide the language switched, you have to access the Themes section:
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:
 


Code
<center>[[File:]]</center>

Revision as of 13:54, 22 November 2018

  Under construction



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


[[File:]]


upload_tmp_dir="/temp"

session.save_path="/temp"


Click on the Theme editor button to edit the desired theme:


[[File:]]


Look on the left side of the screen for the language_changer.twig file.


[[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:


[[File:]]


Now, the welcome page should look like this:


[[File:]]