survey questions: flexible implementation
Not urgent at all, but survey questions should not be hardcoded in tests, as is currently the case.
- They should be defined flexibly, either in a CSV or in the database, so that they can be modified (phrasing mostly), by a series of variables (
label, labelNote, type, options
...?) - It should be possible to activate them separately depending on the test/survey (e.g., survey_id=1 could ask for birthyear + L1; survey_id=2 could ask for L1 + other languages, etc.)
- They should be easily translatable via JSON localization (that is the tricky part that might make it more difficult to combine i18n with database definition of the fields...