- πΊπΈUnited States smustgrave
This seems like something that could still be valid.
But could you confirm please?
At the moment you have different ways to define translatable strings in discovery mechanisms.
/**
* Implements hook_foo_plugins().
*/
return array(
'label' => t('Label'),
);
/**
* @Plugin(
* label = @Translation("Label")
* )
*/
so if you just want to swap out the discovery mechanism you can't because your code is either using $definition['label'] or just $definition['label']->get().
One way to fix it could be to add a __toString() method to the translation class, and require people to cast it, when it's needed,
thought i consider this as bad DX, not sure about the proper way.
Postponed: needs info
9.5
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This seems like something that could still be valid.
But could you confirm please?