Fixes for RTL languages during install MDL-10768
authormoodler <moodler>
Thu, 9 Aug 2007 08:57:52 +0000 (08:57 +0000)
committermoodler <moodler>
Thu, 9 Aug 2007 08:57:52 +0000 (08:57 +0000)
install.php

index cb38d300ea0742f06ae3b9a3d57e45cf6c2f702b..edca4a03ad0b175835ad9a06bec7bbe93c93d3e7 100644 (file)
@@ -670,7 +670,7 @@ if ($nextstage == SAVE) {
         echo "</table>\n";
 
         echo "<hr />\n";
-        echo "<div style=\"text-align: left\">\n";
+        echo "<div style=\"text-align: ".fix_align_rtl("left")."\">\n";
         echo "<pre>\n";
         print_r(s($str));
         echo "</pre>\n";
@@ -924,8 +924,8 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
     }
 ?>
 
-            <?php echo ($nextstage < SAVE) ? "<input type=\"submit\" name=\"next\" value=\"".get_string('next')."  &raquo;\" style=\"float: right\"/>\n" : "&nbsp;\n" ?>
-            <?php echo ($nextstage > WELCOME) ? "<input type=\"submit\" name=\"prev\" value=\"&laquo;  ".get_string('previous')."\" style=\"float: left\"/>\n" : "&nbsp;\n" ?>
+            <?php echo ($nextstage < SAVE) ? "<input type=\"submit\" name=\"next\" value=\"".get_string('next')."  &raquo;\" style=\"float: ".fix_align_rtl("right")."\"/>\n" : "&nbsp;\n" ?>
+            <?php echo ($nextstage > WELCOME) ? "<input type=\"submit\" name=\"prev\" value=\"&laquo;  ".get_string('previous')."\" style=\"float: ".fix_align_rtl("left")."\"/>\n" : "&nbsp;\n" ?>
 
 <?php
     if ($needtoopenform) {
@@ -1106,11 +1106,11 @@ function css_styles() {
         width: 500px;
     }
     .td_left {
-        text-align: right;
+        text-align: <?php echo fix_align_rtl("right") ?>;
         font-weight: bold;
     }
     .td_right {
-        text-align: left;
+        text-align: <?php echo fix_align_rtl("left") ?>;
     }
     .main {
         width: 500px;