Closed (won't fix)
Project:
Nodewords: D6 Meta Tags
Version:
5.x-1.8-rc1
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2008 at 07:19 UTC
Updated:
30 May 2012 at 19:19 UTC
Would it be an option to include the language metatag to support multi language sites? It helps search engines to decide which language is supported. I notice that Google mixes the different languages in the search results.
where language can be replaced by $locale .
Comments
Comment #1
giorgio79 commentedWas just looking for this exact thing.
Locale is core in Drupal 6 and I just enabled selecting language for content type, but the language does not appear in meta...
Comment #2
1websitedesigner commentedHi,
You'd need the Internationalization module, which is at:
http://drupal.org/project/i18n
This lets you select other languages, easily manage translations, etc.
There's also a bit more explanation of the language metatag (not specific to Drupal) on:
http://www.1websitedesigner.com/language-metatags
Comment #3
avpadernoThe module doesn't support meta tags like
<meta http-equiv="Content-Language" content="en">; the only meta tags it supports are like<meta name="robots" content="noindex,nofollow">.Comment #4
avpadernoComment #5
Hobbes-2 commentedsubscribe
Comment #6
Jeordy commentedWell, i've combined some posts into the following code. Put this in your template.php. This is for Drupal 7, by the way.
When you look at the source code, you will find 2 extra meta fields containing language and content-language.
Hope this helps.
Comment #7
damienmckenna@Jeordy: Thanks. The Metatag module might benefit from your code snippet, Nodewords doesn't work on D7.
Comment #8
tommer commentedThanks Jeordy. I needed solution for D6, so here it is: