Questionnaire Language

From Catglobe Wiki
Jump to: navigation, search

Language determination

When a user starts a questionnaire, one of the first thing the engine figures out is the language to use.

  1. If the link contains an l=isocode parameter, this language is used. Example: login.aspx?r=xxx&l=da-DK
    1. If the link is a n=2 link (ie create user on visit), this also becomes the user language.
    2. If questionnaire does not contain the language given, then continue to next check.
  2. If the user is known, then
    1. if the questionnaire contains the users language that is used.Notice this is an exact match, meaning no-NB and no-NO are not considered the same language even though they are both Norwegian.
    2. else questionnaire default language is used.
  3. if anonymous survey (user is not known), then
    1. questionnaire default language is used

Furthermore, a questionnaire may contain a language selector, which can overwrite the initial language.

Notice all testing should be done in the browsers private mode to prevent your currently logged in user from being the source of the language, and also to prevent the server from remembering current language choice if you switch the language of the user while questionnaire is open.