Follow-up to #1763974: Convert entity type info into plugins
Blocked by #1827424: Parse annotations recursively

Currently, nested values in annotations cannot be translated. Once they are, we need to go back and wrap the labels of the bundles and view modes in @Translation().

Comments

jibran’s picture

Status: Postponed » Active
amateescu’s picture

Status: Active » Closed (works as designed)

Bundles and view modes have their own info hooks now and can be translated just fine with t().

andypost’s picture

Status: Closed (works as designed) » Active
Issue tags: +D8MI

Neither hook_entity_view_mode_info() nor bundle() before #1735118: Convert Field API to CMI have enough context to be translatable

amateescu’s picture

I have no idea what you're trying to say. What context?

andypost’s picture

I mean translation context. Bundles would be config entities that have config translation.
But view modes as they defined within hook looks like content context of translation

berdir’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

It's up to the implementation to make bundle translatable, and as most are now config based, they implicitly rely on config translation. Same for view modes, which are now config.

berdir’s picture

Status: Closed (cannot reproduce) » Closed (works as designed)

Ups.