Translations of this page:


string getLanguage()

Determines which language the questionnaire is currently shown in. This function is particularly helpful if the participant is able to choose from different language versions at the beginning of the survey (Multilingual Surveys).

The function returns the three letter language code as specified in ISO 639-2. The language code for your survey can be found in Language VersionsManage Language Versions (if your survey project has multiple language versions).


At the end of the questionnaire, the participants will be forwarded to different websites depending on the language version.

if (getLanguage() == 'fre') {
} else {

The following PHP code sends – depending on the language version – one of two mailings after 14 days to resume the questionnaire (see buttonHide()).

if (caseTime('begin') < 24 * 3600) {
  if (getLanguage() == 'eng') {
    mailResume(false, 3, 14 * 24 * 3600);  // English version
  } else {
    mailResume(false, 4, 14 * 24 * 3600);  // German version
} else {
en/create/functions/getlanguage.txt · Last modified: 24.01.2015 13:41 by alexander.ritter
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki