Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ws_type in vw_tww_wastewater_structure and types in database #60

Open
urskaufmann opened this issue Dec 14, 2023 · 5 comments
Open

ws_type in vw_tww_wastewater_structure and types in database #60

urskaufmann opened this issue Dec 14, 2023 · 5 comments
Labels
QGIS Upstream Concern QGIS and has to refer to a QGIS issue question Further information is requested technical_group To be adressed by the technical group translation

Comments

@urskaufmann
Copy link
Contributor

I understood a few days ago, that this type-fields (e.g.maintenance_event_type) work with the types in the database.
And I ask, why we do not use also types for the ws_type field in vw_tww_wastewater_structure (the list there is just configured in the project file)?
BUT: is it possible to translate this type-lists? If not: why do we not use normal vl_lists as type-lists (with value_en, value_de etc)?
If it's not possible to translate and a vl_list instead is not a good idea: can we use multilingual-expressions (manhole/Normschacht/Chambre standard)?
Instead of values "unknown" or "damage" or "overflow" (values that are shown with a new record): "Select a subclass ..."

@3nids
Copy link
Contributor

3nids commented Dec 15, 2023

This type is created by pirogue.
I think we can translate these in the project using a value-map field widget.

@sjib
Copy link
Contributor

sjib commented Feb 2, 2024

@urskaufmann Is this still an issue?

@ponceta ponceta added question Further information is requested technical_group To be adressed by the technical group translation labels Feb 2, 2024
@urskaufmann
Copy link
Contributor Author

the question of the translation is not answered.
I wish lists with the first element "Select a subclass..." and then the other elements for the subclasses (manhole, special_structure,...)
This list should be with code and language-fields (value_en, value_de, ...). Like this we can configure the qgs-file with no problems in the case a tab is just shown for a specific subtype. Till now, there is the english name of the type in the formula for the tab-visibility, and you have to manually change the formula if the type-values are translated.

@ponceta
Copy link
Member

ponceta commented Oct 23, 2024

Value-map field widgets (values and descriptions) are not exported to the .ts files and therefore not translatable to Transifex.

https://app.transifex.com/teksi/tww-qgis-project/translate/#fr/tww-qgis-project/520459914?q=text%3A'Discharge+Point'

This would require a QGIS evolution first. I opened an issue here :

qgis/QGIS#59175

In the meantime I see no other option than manually translating the description fields

image

I added it as a known limitation to the translation guide

image

@ponceta ponceta added the QGIS Upstream Concern QGIS and has to refer to a QGIS issue label Oct 23, 2024
@urskaufmann
Copy link
Contributor Author

Why do we not create TWW-Valuelists in such cases?
vl_tww_wastewater_structure_subclass. With en, de, fr values.
The ws_type field as value_relation. Then we have just another "value_en" to translate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QGIS Upstream Concern QGIS and has to refer to a QGIS issue question Further information is requested technical_group To be adressed by the technical group translation
Projects
None yet
Development

No branches or pull requests

4 participants