summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/bootstrap.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index f65dc76cc..323293050 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2479,6 +2479,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
@@ -2498,6 +2499,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);
}
/**