Placeholder text not translatable using configuration translation

Created on 11 April 2024, 3 months ago
Updated 31 May 2024, 27 days 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

Closed: outdated

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

Comments & Activities

Production build 0.69.0 2024