You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When having a project file in another language than English, where vw_qgep_reach is named vw_qgep_haltung - resp. vw_qgep_abwasserbauwerk instead of vw_qgep_wastewater_structure - the selection is not working
To Reproduce
Exact steps to reproduce the behavior:
Go to layer vw_qgep_Haltung
Select some reaches with the Selection tool or a filter
Click on the INTERLIS Export button
Limit to selection show 0 structures and 0 reaches instead of the number of selected objects
Expected behavior
Selection should also work with German and French (and all other translated) files
Or at least a warning should be displayed that the needed layer is not available
Screenshots / data
It looks like the layer names are hardcoded in the INTERLIS Export:
Describe the bug
When having a project file in another language than English, where vw_qgep_reach is named vw_qgep_haltung - resp. vw_qgep_abwasserbauwerk instead of vw_qgep_wastewater_structure - the selection is not working
To Reproduce
Exact steps to reproduce the behavior:
Expected behavior
Selection should also work with German and French (and all other translated) files
Or at least a warning should be displayed that the needed layer is not available
Screenshots / data

It looks like the layer names are hardcoded in the INTERLIS Export:
qgepqwat2ili/qgepqwat2ili/gui/gui_export.py
Line 21 in c749775
qgepqwat2ili/qgepqwat2ili/gui/gui_export.py
Line 27 in c749775
Current workaround
Use an English project file for the export of a selection.
Possible improvement
or maybe even better
Check source instead of layer name for vw_qgep_wastewater_structure / vw_qgep_reach - this would not need to know the name of the layer itself

Check code where else layer names are hardcoded. May be it also influences the label export.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: