Placeholder text not translatable

Created on 17 September 2020, almost 4 years ago
Updated 11 April 2024, 3 months ago

The "Placeholder" input text in the Better Exposed Filter settings in Views are not translatable.
The attached patch fixes this issue.

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡¨πŸ‡ΊCuba mmaldonado

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.

  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    I just came across this way of translating the string and is quite different from how Drupal core translates string that are defined in a view.

    The t() function should always receive a literal strign defined in code, not through configuration. One of the shortcomings of this solution is that a site can be build in a different language than English and therefore the placeholder won't be an English string. The t() function only receives English strings.

    I'll open an issue

Production build 0.69.0 2024