Randomise translations | XM Community
Skip to main content

Hi everyone - I am struggling with the following problem. I have a survey with 6 blocks in English. I want to use Qualtrics’ translate feature and translate it to Portuguese, German, Spanish and Italian. However I want to first ask the participant what their 1st and 2nd languages are (for example, one participant says Spanish is 1st language and English is 2nd language), then I want to randomly present the survey in either Spanish or English without giving the participant the choice of picking the language. In the current translations page, the service is provided as an option. How do I disable this and instead use it as a feature I want to randomise?

I understand I can create 4 x 6 different translated blocks but this is time consuming and is killing me (i have tried this in the past and it is painful). Any shortcut or other methods to translate into 4 languages and randomise directly from the English version is much appreciated. 

You can try the following:

Add the following CSS in the look and feel style CSS option

.LanguageSelectorContainer{display:none;}

Put the language preference question (Q1) in a separate block.

Below that block add a randomizer (with select 1 element as option) with following branch logics as 

  1. if Q1 = Portuguese then set an embedded data lang = PT
  2. if Q1 = Spanish then set an embedded data lang = ES-ES
  3. if Q1 = German then set an embedded data lang = DE
  4. if Q1 = English then set an embedded data lang = EN
  5. if Q1 = Italian then set an embedded data lang = IT

Now, add another block with just one text graphic question, which will translate the survey in any of the languages. Add the below JS to this text graphic question:

jQuery("#SkinContent").hide();
if(jQuery("#Q_lang").val()!="${e://Field/lang}"){
jQuery("#Q_lang").val("${e://Field/lang}").trigger( "change" );
}else{
this.clickNextButton();
}

 


Hi Shashi

Thanks for your reply. 

I tried the following - I inserted the code for the CSS under style/ look and feel. This did not remove the language choice box for the survey. 

Next, the suggestion you have given me is great but it works for half of the the issue. I need to set Q1 (first language) and Q2 (second language). So think about yourself - if your first language is Tamil and second language is English, then I want to randomise between the Tamil and English version for you. Similarly is someone else has Hindi as Q1 and English as Q2, I want to randomise between Hindi and English for that person. 

At this moment, even if use embedded data and codes such as DE, PT and EN for Q1 and Q2, I am not able to make the translation nor randomisation work. I am attaching a screenshot of the block order page. (in my picture your Q1 = Lang1 and Q2 = Lang2) and the CSS code and the translations.


Leave a Reply