summaryrefslogtreecommitdiff
path: root/themes/chameleon
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-09-09 13:36:01 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-09-09 13:36:01 +0000
commitb75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66 (patch)
tree0e6b8908b21909d76c1966305841133bd84d1850 /themes/chameleon
parent884c05a64f8336f9a0fdaacd34e588ec37d49eb0 (diff)
downloadbrdo-b75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66.tar.gz
brdo-b75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66.tar.bz2
Replace hardcoded <html lang="en"> with a locale dependant one. This is especially important for asian sites where this has an effect on font selection.
Diffstat (limited to 'themes/chameleon')
-rw-r--r--themes/chameleon/chameleon.theme4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme
index 154cb2e4b..307d87615 100644
--- a/themes/chameleon/chameleon.theme
+++ b/themes/chameleon/chameleon.theme
@@ -24,8 +24,10 @@ function chameleon_page($content, $title = NULL, $breadcrumb = NULL) {
drupal_set_breadcrumb($breadcrumb);
}
+ $language = $GLOBALS['locale'];
+
$output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
- $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n";
+ $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"$language\" xml:lang=\"$language\">\n";
$output .= "<head>\n";
$output .= " <title>". ($title ? $title ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."</title>\n";
$output .= drupal_get_html_head();