diff --git a/admin/lang.php b/admin/lang.php index 8eba59d3df9..a52f188e038 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -1,6 +1,6 @@ "; + helpbutton("langedit",$strcomparelanguage); + echo ""; + foreach ($stringfiles as $file) { print_heading("$file", "LEFT", 4); @@ -152,6 +157,7 @@ error_reporting(0); if ($f = fopen("$langdir/$file","r+")) { $editable = true; + fclose($f); } else { $editable = false; echo "
".get_string("makeeditable", "", "$langdir/$file")."
"; @@ -173,13 +179,12 @@ echo "cellheading\" NOWRAP VALIGN=TOP>$key | "; echo "cellheading\" VALIGN=TOP>$envalue | "; - $value = htmlentities($string[$key]); - $value = str_replace("$"."a", "\\$"."a", $value); + $value = str_replace("\\","",$string[$key]); // Delete all slashes + $value = htmlentities($value); if ($editable) { echo ""; if (isset($string[$key])) { |