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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir created an issue. See original summary.

Berdir’s picture

Status: Active » Needs review
FileSize
1.16 KB

Here's a patch.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

#2 Patch of Berdir really works good

Thanks man

  • RenatoG committed 54a3b04 on 7.x-2.x authored by Berdir
    Issue #2891782 by Berdir, RenatoG: token_replace() calls should...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to the dev branch.

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.