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.
Comment | File | Size | Author |
---|---|---|---|
#1 | metatag.frontpage_language-1841564-1.patch | 449 bytes | peximo |
Comments
Comment #1
peximo CreditAttribution: peximo commentedWith the above configuration the front page is not unique but per language.
The attached patch should fix the problem.
Comment #2
peximo CreditAttribution: peximo commentedSorry, wrong status.
Comment #3
DamienMcKennaCommitted, thanks!
Comment #4
DamienMcKennaVersion 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!
Comment #5
Yazzbe CreditAttribution: Yazzbe commentedIs 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).