This is an old revision of the document!
void setLanguage(string languageCode)
Sets the language the questionnaire will be shown in in a Multilingual Survey with immediate effect. This function is useful if you want to change the language in the questionnaire depending on, for example, a filter question.
Each language code consists of 3 letters, as specified in [[http://www.loc.gov/standards/iso639-2/php/code_list.php|ISO 639-2] (bibliographic versions). The relevant abbreviations are stated in multilingual projects under Language Versions → Language Administration.
Note: It makes sense to insert this function and the respective filter at the very top of a page in the questionnaire. If the function in used between questions, the questions above will appear in the previous language, and the following questions in the new one.
Tip: If you just want the participant to be able to change the language, activate the option Show buttons to change the questionnaire language in Compose Questionnaire –> Settings tab.