]> git.mjollnir.org Git - moodle.git/commitdiff
Language direction is now set in the language file, rather than
authormoodler <moodler>
Sun, 5 Oct 2003 14:05:57 +0000 (14:05 +0000)
committermoodler <moodler>
Sun, 5 Oct 2003 14:05:57 +0000 (14:05 +0000)
as a site-level setting.  This currently only affects Arabic but
will affect Hebrew later and maybe others.

admin/config.html
lib/defaults.php
lib/weblib.php

index b4ec01d17ce7b47d43d95d7bcd1623e8ecac01d2..b8a79c71f8b3c57d370d3048ff5c0127d5a3edeb 100644 (file)
     <?php print_string("configlang") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>langdir:</td>
-       <td>
-    <?php 
-       unset($options);
-       $options["LTR"] = get_string("langltr");
-       $options["RTL"] = get_string("langrtl");
-
-       choose_from_menu ($options, "langdir", $config->langdir, "", "", "");
-    ?>
-    </td>
-    <td>
-    <?php print_string("configlangdir") ?>
-    </td>
-</tr>
 <tr valign=top>
        <td align=right><p>langmenu:</td>
        <td>
index 991316734482b999afd778ac8fc3b1ffc489ca63..97223907dceeb564556cd3068aa3d5cdfc5a30e6 100644 (file)
        "guestloginbutton" =>  1,
        "htmleditor"       =>  true,
        "lang"             => "en",
-       "langdir"          => "LTR",
        "langmenu"         =>  1,
        "langlist"         => "",
        "locale"           => "en",
        "loglifetime"      =>  0,
        "longtimenosee"    =>  100,
+       "maxbytes"         =>  0,
        "maxeditingtime"   =>  1800,
        "prefix"           => "",
        "proxyhost"        => "",
index 3cfb52b5285bb6e84864c83be780a4f4455ad087..a32d378cc68e610cdf37ed863a6dfa11fa79956b 100644 (file)
@@ -763,7 +763,7 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
         $meta = "<meta http-equiv=\"content-type\" content=\"text/html; charset=".get_string("thischarset")."\" />\n$meta\n";
     }
 
-    if (!empty($CFG->langdir) and $CFG->langdir == "RTL") {
+    if ( get_string("thisdirection") == "rtl" ) {
         $direction = " dir=\"rtl\"";
     } else {
         $direction = " dir=\"ltr\"";