Commit 07932805 authored by webchick's avatar webchick

Issue #673020 by mgifford, attiks: Added the Content-Language HTTP header to the generated page.

parent 4385856d
......@@ -2519,6 +2519,7 @@ function get_t() {
* Initialize all the defined language types.
*/
function drupal_language_initialize() {
global $language;
$types = language_types();
// Ensure the language is correctly returned, even without multilanguage
......@@ -2538,6 +2539,9 @@ function drupal_language_initialize() {
// environments.
bootstrap_invoke_all('language_init');
}
// Send appropriate HTTP-Header for browsers and search engines.
header('Content-Language: ' . $language->language);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment