Difference between revisions of "Questionnaire Language"
(Created page with "== Language determination == When a user starts a questionnaire, one of the first thing the engine figures out is the language to show. Category:Understanding_questionna...") |
(→Language determination) (Tag: visualeditor) |
||
Line 1: | Line 1: | ||
== Language determination == | == Language determination == | ||
− | When a user starts a questionnaire, one of the first thing the engine figures out is the language to | + | When a user starts a questionnaire, one of the first thing the engine figures out is the language to use. |
− | + | # If the link contains an l=isocode parameter, this language is used. Example: login.aspx?r=xxx&l=da-DK | |
+ | ## If the link is a n=2 link (ie create user on visit), this also becomes the user language. | ||
+ | ## If questionnaire does not contain the language given, then continue to next check. | ||
+ | # If the user is known, then | ||
+ | ## 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. | ||
+ | ## else questionnaire default language is used. | ||
+ | # if anonymous survey (user is not known), then | ||
+ | ## 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. | ||
[[Category:Understanding_questionnaires_and_questions]] | [[Category:Understanding_questionnaires_and_questions]] |
Latest revision as of 06:25, 9 November 2018
Language determination
When a user starts a questionnaire, one of the first thing the engine figures out is the language to use.
- If the link contains an l=isocode parameter, this language is used. Example: login.aspx?r=xxx&l=da-DK
- If the link is a n=2 link (ie create user on visit), this also becomes the user language.
- If questionnaire does not contain the language given, then continue to next check.
- If the user is known, then
- 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.
- else questionnaire default language is used.
- if anonymous survey (user is not known), then
- 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.