Flag action label not translating correctly

Created on 25 February 2022, almost 3 years ago
Updated 31 March 2023, almost 2 years ago

Problem/Motivation

When using VBO in multiple languages flag actions are always shown in the language that the UI was in during the last plugin cache flush. When debugging I noticed that the flag actions were strings instead of translatable markup.

Steps to reproduce

Create a new action
Translate the action label (in my case FR)
Add VBO to your admin/content the view and set the action from #1 to be displayed
View admin/content in EN -> looks fine
View admin/content in FR -> looks EN, not fine
Flush Plugin cache
View admin/content in EN -> looks FR, not fine
View admin/content in FR -> looks fine

Proposed resolution

Update the EntityFlagActionDeriver to pass translatable markup instead of a string for the label.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Actions integration

Created by

🇨🇦Canada joel_osc

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