Rewriting the text displayed for "- All -" label should occur before translation

Created on 12 December 2021, almost 3 years ago
Updated 15 May 2024, 5 months ago

Problem/Motivation

When changing the "- Any -" label for exposed filter you actually need to put replacement for every site language translation of - Any -

This brings a lot of unnecessary work running bigger multilingual sites where lot of BEF views are used - and introducing new languages.

Steps to reproduce

1. Set up multilingual site
2. Build a view with BEF filter of radio buttons, for the replacement of labels put a line - Any -|Some_replacement_text
3. Switch site to non-english language that has "- Any -" label translated.

What you should see is Some_replacement_text or it's translation, not a regular "- Any -" label translated to current language.

Proposed resolution

Run label replacement code before and after label translations - so all cases will be covered. Or let users decide (site-wide setting/particular view general BEF settings).

📌 Task
Status

Fixed

Version

6.0

Component

Code

Created by

🇵🇱Poland gravisrs

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

Merge Requests

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