From: defacer Date: Fri, 2 Jul 2004 08:18:47 +0000 (+0000) Subject: Fix for bug 1608: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d2b12fefd5d100c3e813aa2d49376ec726580d25;p=moodle.git Fix for bug 1608: When editing the language, you can easily switch between the two views with a button. Also fixes in the HTML generation. --- diff --git a/admin/lang.php b/admin/lang.php index 39a8b9e84b..fd599a4576 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -27,14 +27,21 @@ case "missing": $navigation = "$strlanguage -> $strmissingstrings"; $title = $strmissingstrings; + $button = '
'. + ''. + '
'; break; case "compare": $navigation = "$strlanguage -> $strcomparelanguage"; $title = $strcomparelanguage; + $button = '
'. + ''. + '
'; break; default: $title = $strlanguage; $navigation = $strlanguage; + $button = ''; break; } @@ -42,7 +49,8 @@ print_header("$site->shortname: $title", "$site->fullname", "$stradministration -> ". - "$strconfiguration -> $navigation"); + "$strconfiguration -> $navigation", + '', '', true, $button); if (!$mode) { $currlang = current_language(); @@ -102,15 +110,18 @@ $value = str_replace("$"."a", "\\$"."a", $value); $value = str_replace("%%","%",$value); if ($first) { - echo "

".get_string("stringsnotset","","$langdir/$file")."

";
+                        echo "

".get_string("stringsnotset","","$langdir/$file")."

";
                         $first = false;
                         $somethingfound = true;
                     }
-                    echo "$"."string['$key'] = \"$value\";
"; + echo "$"."string['$key'] = \"$value\";
"; } } + if (!$first) { + echo '

'; + } } - + if (! $files = get_directory_list("$CFG->dirroot/lang/en/help", "CVS")) { error("Could not find English language help files!"); }