views apply button translation

Created on 6 August 2020, over 4 years ago
Updated 13 February 2023, almost 2 years ago

Problem/Motivation

Apply button in views exposed filters needs to be translated as Appliquer , adjusting the twig file to use a |t crashes with a nasty error string ("Search") must be a string

Steps to reproduce

create a view with an exposed filter, visit the page in french

Proposed resolution

1) Apply this core patch for the error: https://www.drupal.org/files/issues/2020-08-05/2719553-35.patch โ†’
2) now that the core patch is applied, can use |t for the label in wxt_bootstrap/templates/input/input--button.html.twig
3) modify/patch wxt_bootstrap/templates/input/input--button.html.twig
4) Translate the string 'Apply' to 'Appliquer' if it isn't already, visit the french view page.

Remaining tasks

create a patch for wxt_bootstrap

User interface changes

French exposed filter button now gets correct label 'Appliquer'

API changes

N/A

Data model changes

N/A

๐Ÿ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada joseph.olstad

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