Translate level_labels

Created on 31 August 2016, over 8 years ago
Updated 13 January 2025, 3 months ago

Another translation issue: choosing "Client-side hierarchical select" as widget in "Manage form display" I can set so called "Level labels" or "Labels per hierarchy-level".
Help text says "Enter labels for each hierarchy-level separated by comma."
This is working fine - as long as I do not need translations for the labels.

Best option would be to translate the labels via the user interface - but I do not know how to do something like this.

But in CshsOptionsFromHelper::formElement() I managed to pass the labels through the good old t()-function.

I know, I know - you should not pass variables to t() - but I really need to translate the labels...

Patch attached.

.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇩🇪Germany gngn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024