Views showing a boolean base field with custom on/off labels cannot translate those labels

Created on 25 January 2023, almost 2 years ago
Updated 24 February 2023, over 1 year ago

Problem/Motivation

When adding a boolean base field to an entity and add that field to a View and I want to use a custom text for the on/off labels, those labels cannot be translated.
This was fixed for normal fields in #2849529: Unable to translate boolean custom true and false strings in views →

Steps to reproduce

Add a boolean base field to an entity
Create a view of that entity
Add the base field as a field to the view
Set the output format to Custom
Add a custom on label
Save the View
Go to translate the View

Expected behaviour:
The custom label can be translated

Actual behaviour:
The custom label doesn't appear in the translation interface

Proposed resolution

Set the custom texts to be labels and not strings in the schema

Remaining tasks

Discuss if this needs tests, previous changes to switch schema from untranslatable to translatable didn't need tests for those particular strings

User interface changes

Configurable strings can be translated

API changes

None

Data model changes

None

Release notes snippet

📌 Task
Status

Fixed

Version

10.1 ✨

Component
Views  →

Last updated about 5 hours ago

Created by

🇳🇱Netherlands Lendude Amsterdam

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

Comments & Activities

Production build 0.71.5 2024