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.
Hi All,
I'm using Meta Tags module, it's great, but I've a problem to set Meta Description and Keywords for multilingual front page.
e.g.
www.mysite.xxx/en -> dedicated description and keywords in front page english version
www.mysite.xxx/it -> dedicated description and keywords in front page italian version
Can anyone to say to me how to configure easily these meta tags for all language about front page? It's very strange that in this nice module this action is so difficult...
Thanks in advance.
Ciao
Fabrizio
Comments
Comment #1
DamienMcKennaIf you use the i18n_strings submodule of the i18n module you can translate any of the default settings, including the settings for the homepage.
Comment #2
Bizio CreditAttribution: Bizio commentedHi Damien,
thanks for your fast answer, I will try it soon.
I've found another solution: using context module.
1) installed context module
2) create two "Add a meta tag by path" items from meta tags module
3) modify them directly from context module: add another condition for each (language = italian and language = english)
Paths: for twice is equal to "node-1".
Done. Five minutes and all is ok now.
Thanks for your support.
Ciao
Fabrizio
Comment #3
codewhisper CreditAttribution: codewhisper commentedThe provided way using the i18n_strings module does not work. The metatags show up as a text group but after a refresh of the strings, you cannot find any strings within the translation interface.
After having a look at the code and the description of "hook_i18n_string_info". The metatag module does provide the info about the group but does not provide the strings itself.
Comment #4
DamienMcKennaComment #5
DamienMcKennaComment #6
Dret CreditAttribution: Dret commentedAnother partial solution for description tag in multilanguage site,
use Site Slogan (is a multilanguage variable) to load a different description for every language in Front page settings.
Is a dirty solution, I Know!
I hope developer will find a solution to emulate D6 version, returning to use only node meta tag setting also for ones promoter to front page!
Thanks!
Comment #7
GoddamnNoise CreditAttribution: GoddamnNoise commentedSame problem here. The solution based on the i18n_strings module doesn't work for me.
Comment #8
GoddamnNoise CreditAttribution: GoddamnNoise commentedThis is a temporary fix until this problem is fixed in the Metatag module:
Add this code to one of your modules (or to the template.php file in your theme):
Change
YOUR_THEME_NAME
for your theme name and change the language codes and the meta description values to those who fit your needs. This will change the meta description value in the front page for the languages included in the previous code.Hope this could save someone's day until the fix arrives from the module mantainers.
Comment #9
Maks CreditAttribution: Maks commentedMany thanks, GoddamnNoise!
Comment #10
Nick Robillard CreditAttribution: Nick Robillard commentedAny updates here? I'm observing the same thing as codewhisper. The metatags show up as a text group but after a refresh of the strings, I cannot find any strings within the translation interface.
Comment #11
DamienMcKennaI'm working on this problem in #2564483: Cannot translate metatags after last update anymore, so far the meta tags for global:frontpage are translating correctly, but there's more to go.