Add context to field formatter translation

Created on 26 February 2016, almost 9 years ago
Updated 19 September 2023, over 1 year ago

Hello, can we please have a context added to t() function around field formatter label, like so?

function picture_field_formatter_info() {
...
    $formatters['picture'] = array(
      'label' => t('Picture', array(), array('context' => 'Picture')),
...

Currently it automatically uses translation from core that's meant for user profile picture. What's worse I'm from a country that uses the same word for "image" and "picture", so on formatter list I have the same fromatter name twice in a row, which is pretty confusing.

Feature request
Status

Closed: outdated

Version

2.13

Component

User interface

Created by

🇵🇱Poland Pawlus

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.

  • 🇬🇧United Kingdom lesleyfernandes

    I am closing all very old tickets that have not received comments for a long time. If someone still faces these issues or thinks they are still relevant, please reopen it. Feel free to contribute with more info or a patch.

Production build 0.71.5 2024