Views plugin 'Break lock' should be translatable

Created on 15 December 2022, over 1 year ago
Updated 3 April 2024, 5 months ago

Problem/Motivation

The 'Break lock' link built in the views field plugin (function renderLink() in src/Plugin/views/field/ContentLockBreak.php) is not translatable, i.e. does not call t() or $this->t().

The 'Break lock' link from content_lock_entity_operation() in content_lock.module does call t().

Proposed resolution

Wrap the text with $this->t().

User interface changes

Link is translatable.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

User interface

Created by

πŸ‡©πŸ‡ͺGermany gngn

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