-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: refactor translation detection in survey.py
- for the purposes of _generate_static_instances, it seems like what matters is whether the choice list being processed is multi-language or not. The decision needs to be per choice list because otherwise choice lists with only default values would show "-" in every language except the default. The alternative taken here is to emit it as a non-translated list so that every language would see the same labels or media. - to help differentiate choice from question translations, dict subtypes are introduced, rather than relying on matching the list_name (it may not make much difference, but that info is available to use). - todos: - failing test related to JSON conversion, where the itext choice references in the secondary instances go missing vs. xml output. - test assertions for case(s) with translations + media
- Loading branch information
1 parent
19fab39
commit 152527e
Showing
3 changed files
with
134 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters