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.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | metatag-2831198-03.patch | 2.76 KB | FeyP |
|
Comments
Comment #2
gvancout CreditAttribution: gvancout commentedChanging and saving the description in the core language, fixed this issue for me.
Comment #3
FeyP CreditAttribution: FeyP as a volunteer and at werk21 commentedThe 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.
Comment #4
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedThat 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!
Comment #5
DamienMcKennaCommitted. Thank you.