Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using tokens and specifically the [node:title] token, the node title is displayed in the wrong language for translations when using entity_translation + title modules.
Apparently title.module made a change where they now default to the entity default language if no explicit language argument is provided, seemingly on purpose as it is used for storage. (Not sure I agree with that argument there, but I don't think we can change that back).
But explicitly passing the language along doesn't hurt and fixes this problem.
Comment | File | Size | Author |
---|---|---|---|
#2 | custom_breadcrumbs-token-language-2891782-2.patch | 1.16 KB | Berdir |
Comments
Comment #2
BerdirHere's a patch.
Comment #3
renatog#2 Patch of Berdir really works good
Thanks man
Comment #5
renatogCommitted and pushed to the dev branch.
Best,