Steps to repeat:
1. Install metatag, locale, content translation, i18n_variable
2. Add a language (eg. italian)
3. Enable translation for a content type (eg. page)
4. Add a node in default language (eg. english)
5. Translate this node
6. In admin/config/regional/i18n/variable enable "Default front page" as multilingual variable.
7. In admin/config/system/site-information set "Site name" and "Site slogan" for english version. Set the previous created english node as "Default front page".
8. Again in admin/config/system/site-information set "Site name" and "Site slogan" for italian version. Set the translation of english front page as "Default front page".
9. In admin/config/search/metatags/config/global:frontpage set [site:name] - [site:slogan] as Page title.
10. Go to site front page and change the language.

Expected Results:
The page title changes per language.

Actual Results:
The page title has always the same value.

CommentFileSizeAuthor
#1 metatag.frontpage_language-1841564-1.patch449 bytespeximo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

peximo’s picture

With the above configuration the front page is not unique but per language.
The attached patch should fix the problem.

peximo’s picture

Status: Active » Needs review

Sorry, wrong status.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed, thanks!

DamienMcKenna’s picture

Status: Fixed » Closed (fixed)

Version 7.x-1.0-beta3 has been released and includes this work. Am closing this issue in an effort to keep the issue queue clean. Thank you all for your continued help!

Yazzbe’s picture

Is there also a solution when working with 'entity translation' ?

My meta tags are the same for all frontpage language versions, but they are translated in the node (promoted a specific, translated node as frontpage).