Actions

Encuesta multilingüe

From LimeSurvey Manual


Introducción

LimeSurvey contiene una función incorporada que permite la traducción rápida y sencilla de encuestas. Esta función está diseñada para facilitar que un traductor humano traduzca una encuesta del idioma base a cualquier idioma de destino específico.

Esta sección wiki cubre rápidamente cómo se puede crear una encuesta multilingüe. La guía cubre temas como:


El ejemplo analizado a lo largo de la sección wiki se puede descargar desde aquí: Muestra de encuesta multilingüe LS3. Descomprímelo e importa el archivo .lss a tu instancia de LimeSurvey.


Agregar idiomas adicionales

El idioma predeterminado de la encuesta es el que seleccionó en el campo de idioma base. Por defecto, es el idioma configurado en la global settings de tu instancia.

Para comprobar cuál es el idioma base, acceda al panel de configuración general de la encuesta y busque el campo de idioma base. En nuestro ejemplo, el idioma base es "inglés". Para comenzar a agregar nuevos idiomas a los que desea traducir la encuesta, consulte el campo de idiomas adicionales. En nuestro ejemplo, se han seleccionado otros tres idiomas: francés, alemán e italiano.



Una vez hecho esto, no olvides hacer clic en el botón "Guardar" ubicado en la parte superior derecha de la pantalla.

Ahora, si revisas la barra de herramientas superior, podrás observar que apareció una pequeña flecha al lado de "Vista previa de la encuesta". Esto significa que se puede obtener una vista previa de la encuesta en diferentes idiomas:



Si accede al panel overview, se muestran cuatro enlaces de encuestas adicionales. Corresponden a los idiomas añadidos recientemente:


Traducir cadenas

Para comenzar a traducir cadenas, acceda al panel del editor de cada una de sus preguntas. Puede observar en la siguiente captura de pantalla que se muestran tres idiomas adicionales encima del campo del código de pregunta:



Haga clic en cualquiera de ellos y comience a traducir el campo de preguntas.

El mismo tipo de "barra de idioma" se encuentra en muchos otros lugares, como en los elementos de texto y paneles de configuración de políticas de datos, campos de texto de respuestas y subpreguntas, etc. Sin embargo, traducir campos con este método puede resultar complicado si la encuesta es larga y no desea perderse nada. Es por eso que recomendamos encarecidamente a nuestros usuarios que utilicen la herramienta de traducción rápida. Para acceder a él, haga clic en cualquier configuración relacionada con la encuesta (como "Descripción general") -> Herramientas -> Traducción rápida



Herramienta de traducción rápida

La herramienta de traducción rápida ha sido diseñada específicamente para quienes trabajan con encuestas multilingües. Una vez accedido, se cargará el siguiente panel:



La primera opción, traducir a, le brinda la posibilidad de seleccionar el idioma al que desea traducir desde su idioma base.

Las siguientes opciones se refieren a la traducción del contenido de su encuesta. Se refieren a:

Please note that at the moment of writing this section (LimeSurvey 3.16.0), the following sections are translatable but not displayed in this panel: To translate them, please access each option and follow the steps described in the previous wiki subsection.


Once you are done translating these fields, do not forget to click on the "Save" button located in the upper right part of the panel.


Multilingual survey overview

To check your work, use the preview button. The welcome page will look like this:



Two language switcher can be observed once the welcome page is loaded. LimeSurvey offers the possibility to your respondents to change the language of instructions even though you shared with them the corresponding link for a specific language. A language switcher will also be located on the top right-side of your survey.

In the case in which you wish to hide the two "language switcher" buttons, edit the theme of your survey. For more details, see the hints & tips wiki subsection.


In the case in which a string is not translated, the respective string will be displayed in the base language of your survey.


Hints & tips

  • If you wish to grant users translation permissions to access the quick-translation tool, check the following wiki subsection.
  • The "Auto-translate" feature makes use of the Google translate web service for automatic translation of a survey. You must enter your Google Translate API Key under global settings to access this feature. Google currently charges $20 US per 1 million characters submitted for translation.


How to hide the language switcher from the welcome page

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. The "twig" way is displayed below.

Access Themes from the global Configuration menu:



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



LimeSurvey does not allow you to edit the standard themes! If you wish to add changes to a standard theme, click on the Extend button located on the top bar to create an editable copy of it.


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



Go to the line that contains the following function:

{% if aSurveyInfo.alanguageChanger.show == true %}

Comment it out (replace "%" with "#") and copy the following line below it:

{% if false == true %}


The line should look like this in the end:



Click on "Copy to local theme and save changes".


Access your survey and select the edited theme from the general settings panel. Now, the welcome page should look like this:



How to hide the language switcher located on the top menu

To hide the top language switcher, we will follow pretty much the same steps as described above. We just have to access the right twig file to edit it. Access again the theme you wish to change, and then go to Screen which is located in the upper-right part of the window and select Navigation from the dropdown list. Now, look on the left side of the window for "language_changer_top_menu.twig". Click on it and comment out:

{% if aSurveyInfo.alanguageChanger.show == true %}

Add the following line below it:

{% if false == true %}

No language switcher will be displayed on the right side of the screen: