I've similar or the same issue as #2113501.
The problem is very simple:
- I have view meta tags (title and decription)
- I translate it to other languages and use token values and text
When I switch language site, tokens correctly displayed in current language but all other text displayed as original phrases (that are used for default site language).

Full clear cache didn't help.

CommentFileSizeAuthor
#3 metatag-2831198-03.patch2.76 KBFeyP
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xrobak created an issue. See original summary.

gvancout’s picture

Changing and saving the description in the core language, fixed this issue for me.

FeyP’s picture

Version: 7.x-1.17 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
2.76 KB

The context used for retrieving translated views metatags differs from the context they are being saved with. That's why the translations are not found and the original string is being displayed. The context they are being saved as could produce ambiguous context names I decided to keep the context used for retrieval and add an update hook to move all unambiguous contexts. Attached is a patch against 7.x-1.x-dev.

Simon Georges’s picture

That worked for me: without this patch, I couldn't translate a Views META description (I mean I could translate the string, but the translated version was never used), with this patch, everything works. Thanks a lot!

DamienMcKenna’s picture

Status: Needs review » Fixed
Parent issue: » #2958474: Plan for Metatag 7.x-1.26

Committed. Thank you.

  • DamienMcKenna committed b0d4cec on 7.x-1.x authored by FeyP
    Issue #2831198 by FeyP, Xrobak, Simon Georges: Translated views metatag...

Status: Fixed » Closed (fixed)

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