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

there is just one style of a theme translated #481

Open
tomep opened this issue Oct 29, 2024 · 7 comments
Open

there is just one style of a theme translated #481

tomep opened this issue Oct 29, 2024 · 7 comments
Labels
QGIS Upstream Concern QGIS and has to refer to a QGIS issue translation

Comments

@tomep
Copy link
Collaborator

tomep commented Oct 29, 2024

Describe the bug
symbolization of catchment area in german version (style drainage_system_current) is not shown.
Interesting is that if I change the style to drainage system planned, it is displayed correctly.

To Reproduce
Exact steps to reproduce the behavior:

  1. open teksi and representation the catchment areas

Expected behavior
color representation of the catchment areas

Screenshots / data
image
image

Desktop (please complete the following information):

  • TWW 2024.0.3
  • QGIS 3.24.11
  • OS win10

Additional context
Apparently the attributes in the drainage_system_planned style are translated, but not in the drainage_system_current style.
Objectidentify in style drainage_system_current:
image

Objectidentify in style drainage_system_planned:
image

@urskaufmann
Copy link
Contributor

urskaufmann commented Oct 29, 2024

Two problems:

  • there are now more than one style per layer in the project. But the translation works just forone style. Does someone know, how to solve this problem?
  • there is now translation of symboldefinition of the styles itself: the style is defined: represent_value(xy) = english_value. This english value is not translated.

Is it possible to solve this in QGIS?

@urskaufmann urskaufmann changed the title symbolization of catchment area in german version is not shown there is just one stil of a theme translated Oct 29, 2024
@urskaufmann
Copy link
Contributor

urskaufmann commented Oct 29, 2024

further translation problems:
-layergroups on a second level are not translated (e.g. catchment connection lines in layergroup cachment_area, structure parts in layergroup wastewater_structure.

  • variables are not translated

@urskaufmann
Copy link
Contributor

how do we handle the fact, that QGIS translates

  • no map theme names
  • no style names
  • no labels of a symbology
  • field-alias just in one style (!!)
  • no layergroup name inside a layergroup
  • no variables
  • no value map descriptions

or is this just a question, how the file for translation with the strings from the qgs-file is created?
Is this topic solved in the next LTR?

@ponceta ponceta added documentation Improvements or additions to documentation QGIS Upstream Concern QGIS and has to refer to a QGIS issue translation and removed documentation Improvements or additions to documentation labels Oct 30, 2024
@ponceta
Copy link
Member

ponceta commented Oct 30, 2024

his just a question, how the file for translation with the strings from the qgs-file is created?
Is this topic solved in the next LTR?

The function is called in https://github.com/teksi/wastewater/blob/main/project/scripts/project-translation-create-source.py
project.generateTsFile(args.language)

It is a QGIS function that you can call from QGIS directly (project/properties):
image

New translations strings are pushed to Transifex automatically at each iteration / modification of the QGIS project.

@ponceta
Copy link
Member

ponceta commented Oct 30, 2024

@tomep a small workaround can be to copy the "fields" style from the current theme and then paste it to the planned style :

image

@tomep
Copy link
Collaborator Author

tomep commented Oct 30, 2024

thanks @ponceta for the tipp. But i mean is not the fields-style. I have success when i past the attribute-style.

@urskaufmann urskaufmann changed the title there is just one stil of a theme translated there is just one style of a theme translated Nov 5, 2024
@ponceta
Copy link
Member

ponceta commented Nov 6, 2024

We should be able to copy both probably, but I'll raise it to QGIS too.

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 translation
Projects
None yet
Development

No branches or pull requests

3 participants