]> git.mjollnir.org Git - moodle.git/commitdiff
Changes to support choice of language direction (so that languages
authormoodler <moodler>
Fri, 11 Oct 2002 02:31:37 +0000 (02:31 +0000)
committermoodler <moodler>
Fri, 11 Oct 2002 02:31:37 +0000 (02:31 +0000)
like Arabic, Hebrew etc will work)

admin/config.html
lib/defaults.php
lib/moodlelib.php
theme/standard/header.html
theme/standardblue/header.html
theme/standardgreen/header.html
theme/standardlogo/header.html
theme/standardred/header.html

index 645a409ecb5cb8ab90cae751551b31d70f6f20c2..89a8496924e9e5cfb5b8624377614f8882c4b794 100644 (file)
     <? print_string("configlang") ?>
     </TD>
 </TR>
+<TR VALIGN=TOP>
+       <TD ALIGN=RIGHT><P>langdir:</TD>
+       <TD>
+    <? unset($options);
+       $options["LTR"] = get_string("langltr");
+       $options["RTL"] = get_string("langrtl");
+
+       choose_from_menu ($options, "langdir", $config->langdir, "", "", "");
+    ?>
+    </TD>
+    <TD>
+    <? print_string("configlangdir") ?>
+    </TD>
+</TR>
 <TR VALIGN=TOP>
        <TD ALIGN=RIGHT><P>locale:</TD>
        <TD>
 <TR VALIGN=TOP>
        <TD ALIGN=RIGHT><P>gdversion:</TD>
        <TD>
-    <? $options[0] = get_string("gdnot");
+    <? unset($options);
+       $options[0] = get_string("gdnot");
        $options[1] = get_string("gd1");
        $options[2] = get_string("gd2");
 
        $installed  = check_gd_version();
 
        choose_from_menu ($options, "gdversion", $installed, "", "", "");
-       unset($options);
     ?>
     </TD>
     <TD>
index 010d2ff0e6d0eb85caa9c8ab8c5ee6c3487c8ac4..602d2125bda529a7de8798ce4f17f4537a028279 100644 (file)
@@ -6,6 +6,7 @@
    $defaults = array (
        "theme"          => "standard",
        "lang"           => "en",
+       "langdir"        => "LTR",
        "locale"         => "en",
        "auth"           => "email",
        "smtphosts"      => "",
index 26e5a3b93abea6b817b49245bb62fa8efde8c1d1..ea013a4d14193e5e9e67f1f8ab98e610b41f14b2 100644 (file)
@@ -46,6 +46,12 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
     } else {
         $meta .= "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=".get_string("thischarset")."\">\n";
     }
+
+    if ($CFG->langdir == "RTL") {
+        $direction = " DIR=\"RTL\"";
+    } else {
+        $direction = " DIR=\"LTR\"";
+    }
  
     if (!$cache) {   // Do everything we can to prevent clients and proxies caching
         @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
index 89497488d3a57ab50c66280311cca3f3bc8d6826..c39fb09991a836f58ed6ea53d82db1b59b3b0469 100644 (file)
@@ -1,4 +1,4 @@
-<HTML>
+<HTML<?=$direction?>>
 <HEAD>
 <TITLE><?=$title ?></TITLE>
 <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
index 39ab1588efc9c3c7d976881b486f4b5002427f6d..487eb4168b447f6d420a21d240333fff313d7e8a 100644 (file)
@@ -1,4 +1,4 @@
-<HTML>
+<HTML<?=$direction?>>
 <HEAD>
 <TITLE><?=$title ?></TITLE>
 <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
index d566255c4c0230c960d3ff4689a0f9d12ce90581..524a2ddbbf569a428a463c8f06432734ed6f41e6 100644 (file)
@@ -1,4 +1,4 @@
-<HTML>
+<HTML<?=$direction?>>
 <HEAD>
 <TITLE><?=$title ?></TITLE>
 <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
index 5d36688e77dc4a136de505597b448ee73dfbb4a9..94cea8fa51093986934c74f9f4e5d0566e642648 100644 (file)
@@ -1,4 +1,4 @@
-<HTML>
+<HTML<?=$direction?>>
 <HEAD>
 <TITLE><?=$title ?></TITLE>
 <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
index e250dcad1ab5fc2fba76716350e65a3b809a9b13..0ed3f3528520d7ad4bcc57065f53a42fbee20fdd 100644 (file)
@@ -1,4 +1,4 @@
-<HTML>
+<HTML<?=$direction?>>
 <HEAD>
 <TITLE><?=$title ?></TITLE>
 <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">