Add context to field formatter translation

Created on 26 February 2016, over 8 years ago
Updated 19 September 2023, 9 months 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.69.0 2024