summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-24 09:42:53 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-24 09:42:53 +0000
commit7186c4433e85f4f307466e9706b2a62e30a9b173 (patch)
tree033ae5873052a6108a346da9e259fcdeef3a9ecd /modules/system
parentff4fd98430669b6355d91c2a5042b116d840d3da (diff)
downloadbrdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.gz
brdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.bz2
#208768 by dvessel, Arancaytar: language direction should be in the HTML source, so it is more accessible even without CSS
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/maintenance-page.tpl.php2
-rw-r--r--modules/system/page.tpl.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/system/maintenance-page.tpl.php b/modules/system/maintenance-page.tpl.php
index 12037ab93..e29f2cb10 100644
--- a/modules/system/maintenance-page.tpl.php
+++ b/modules/system/maintenance-page.tpl.php
@@ -16,7 +16,7 @@
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
<title><?php print $head_title; ?></title>
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
index 4b1cf7228..95a53db44 100644
--- a/modules/system/page.tpl.php
+++ b/modules/system/page.tpl.php
@@ -21,6 +21,7 @@
* Page metadata:
* - $language: (object) The language the site is being displayed in.
* $language->language contains its textual representation.
+ * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
* - $head_title: A modified version of the page title, for use in the TITLE tag.
* - $head: Markup for the HEAD section (including meta tags, keyword tags, and
* so on).
@@ -76,7 +77,7 @@
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
<title><?php print $head_title; ?></title>