Skip to content

[Backport queued_ltr_backports] add optional parameter to the "layer_property" expression function to allow returning untraslated string for "type" property (fix #65009)#66446

Open
alexbruy wants to merge 2 commits into
qgis:queued_ltr_backportsfrom
alexbruy:backport-66300-to-queued_ltr_backports

Conversation

@alexbruy

Copy link
Copy Markdown
Contributor

Description

Manual backport of #66300.

The layer_property (layer, 'type') expression returns result which depends on the QGIS locale, e.g. "Vector" or "Вектор". This makes expressions break. As we can't change the behavior of the function, let's add an optional parameter as suggested in #65009 (comment).

Fixes #65009.

AI tool usage

  • AI tool(s) (Copilot, Claude, or something similar) supported my development of this PR. See our policy about AI tool use. Use of AI tools must be indicated. Failure to be honest might result in banning.

@alexbruy alexbruy added the Backport Is a backport of another pull request label Jun 11, 2026
@github-actions github-actions Bot added the Expressions Related to the QGIS expression engine or specific expression functions label Jun 11, 2026
@github-actions github-actions Bot added this to the 3.44.13 milestone Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Is a backport of another pull request Expressions Related to the QGIS expression engine or specific expression functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant