Hi there,
we ran into a very specific problem. We want to deploy a multi language form that contains two different german language versions (“normal” german and simplified german language for people with cognitive impairments or learning disability).
Now the goal is to have Enketo’s UI displayed in german language for both german language versions (normal and simplified).
Problem: When assigning the language code “de” to both languages’ label column, the contents of both languages’ label columns are displayed together in Enketo. This is definitely not an option.
Assigning a dummy language code (e.g. “xx”) to one of the languages (leaving the other with “de”) leads Enketo’s UI to be displayed in english for the “xx”-assigned version. Also not an option (only our last option if this cannot be solved.)
We tried a workaround on our server editing this file: https://github.com/enketo/enketo-express/blob/master/app/views/index.pug
Approach 1: add a new when-statement
when “xx”
li= t(“langs.de”)
Resulting in english UI language
Approach 2: modify an existing when-statement (Swahili) to point to german UI language settings and tag the other german language with “sw”
when “sw”
li= t(“langs.de”)
Resulting in swahili UI language
Now we suppose that modifying this file is not sufficient (or even the wrong place?) to get what we aim for. Can anyone with deeper knowlege regarding the UI language mapping in Enketo point us to the spots to look at and modify?
Thanks in advance
Daniel