-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- Currently the user must provide a language string, e.g.
english(en)
before converting the XLSForm. - This is prone to typos / misremembering / etc - ideally the user can select from options.
- This would mean loading the form in advance before the processing algo runs though!
We could extract all available translations easily:
XLSFormConverter/xlsformconverter/XLSFormConverter.py
Lines 170 to 177 in e4f212e
fields = self.survey_layer.fields().names() | |
if fields[0] == "Field1": | |
self.survey_skip_first = True | |
fields = self.survey_layer.getFeature(1).attributes() | |
self.survey_type_index = fields.index("type") if "type" in fields else -1 | |
self.survey_name_index = fields.index("name") if "name" in fields else -1 | |
self.survey_label_index = fields.index("label") if "label" in fields else -1 |
# translation fields must have `::` between 'label' and the translation alias
translation_tags = sorted({f.split("::", 1)[1] for f in fields if "::" in f})
then display them in a dropdown for selection.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request