Block view title is not translated when displayed as a ds field

Created on 13 December 2016, over 8 years ago
Updated 27 December 2023, over 1 year ago

When using block title as field label

And the block is a view the title doesn't get translated even when I translated the title of the view

🐛 Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇪🇸Spain rodrigoaguilera Barcelona

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.

  • 🇧🇪Belgium swentel

    Getting close with this patch. To fix:

    - Adding translation acts a bit weird, it overwrites the original initially as well (but does save the translated label)
    - getting to use the translated version of the title in the frontend
    - clear cache when adding/deleting ds field (to trigger ds_config_translation_info_alter()).

    (this would have probably been easier and more logic if our fields were config entities, but oh well)

  • Status changed to Closed: won't fix over 1 year ago
  • 🇧🇪Belgium swentel

    So ironically, if you use the title from the field itself, you can translate via the translate ui - cf DynamicField class. Completely missed that.

    Adding t() around the title when it comes from a block or views is not my favorite option here, so simply closing.

Production build 0.71.5 2024