Placeholder text not translatable using configuration translation

Created on 11 April 2024, 8 months ago
Updated 7 September 2024, 4 months ago

Problem/Motivation

Followup from πŸ› Placeholder text not translatable Fixed

In that issue the fix was to pass the value defined as placeholder to the t() function. This is quite different from how the placeholder is handled in Drupal core.

Steps to reproduce

Create a view in a different language other than English.
Translate it to another language.
The placeholder can't be translated unless you use English in the configuration.

Proposed resolution

The exposed filter can already define a placeholder. Use the one from Drupal core that can be properly translated.

Remaining tasks

Code.
Migrate BEF placeholders to core placeholders with a post_update function.

User interface changes

BEF placeholder won't be an option anymore.

API changes

Not sure

Data model changes

Code that relied on altering the bef placeholder will need modification.

πŸ› Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024