diff --git a/admin/lang.php b/admin/lang.php index 0a372dc3c1e..6bafd9691c0 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -85,7 +85,7 @@ // Get a list of all the root files in the English directory $langdir = "$CFG->dataroot/lang/$currentlang"; - $enlangdir = "$CFG->dirroot/lang/en"; + $enlangdir = "$CFG->dirroot/lang/en_utf8"; if (! $stringfiles = get_directory_list($enlangdir, "", false)) { error("Could not find English language pack!"); @@ -133,7 +133,7 @@ } } - if (! $files = get_directory_list("$CFG->dirroot/lang/en/help", "CVS")) { + if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/help", "CVS")) { error("Could not find English language help files!"); } @@ -145,7 +145,7 @@ } } - if (! $files = get_directory_list("$CFG->dirroot/lang/en/docs", "CVS")) { + if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/docs", "CVS")) { error("Could not find English language docs files!"); } foreach ($files as $filekey => $file) { // check all the docs files. diff --git a/admin/langdoc.php b/admin/langdoc.php index 59577eaa740..1c8d8757019 100755 --- a/admin/langdoc.php +++ b/admin/langdoc.php @@ -50,7 +50,7 @@ Thanks: Jaime Villate for important bug fixing, koen roggemans for his job a $currentlang = current_language(); $langdir = "$CFG->dataroot/lang/$currentlang"; - $enlangdir = "$CFG->dirroot/lang/en"; + $enlangdir = "$CFG->dirroot/lang/en_utf8"; // Shall I save POSTed data? @@ -70,7 +70,7 @@ Thanks: Jaime Villate for important bug fixing, koen roggemans for his job a // Get all files from /docs directory - if (! $files = get_directory_list("$CFG->dirroot/lang/en/docs", "CVS")) { + if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/docs", "CVS")) { error("Could not find English language docs files!"); } @@ -82,7 +82,7 @@ Thanks: Jaime Villate for important bug fixing, koen roggemans for his job a if (( !file_exists("$langdir/docs/$file")) || (filesize("$langdir/docs/$file") == 0)) { $options["docs/$file"] .= "$filemissingmark"; } else { - if (filemtime("$langdir/docs/$file") < filemtime("$CFG->dirroot/lang/en/docs/$file")) { + if (filemtime("$langdir/docs/$file") < filemtime("$CFG->dirroot/lang/en_utf8/docs/$file")) { $options["docs/$file"] .= "$fileoldmark"; } } @@ -90,13 +90,13 @@ Thanks: Jaime Villate for important bug fixing, koen roggemans for his job a // Get all files from /help directory - if (! $files = get_directory_list("$CFG->dirroot/lang/en/help", "CVS")) { + if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/help", "CVS")) { error("Could not find English language help files!"); } foreach ($files as $filekey => $file) { // check all the help files. $options["help/$file"] = "help/$file"; - if (( !file_exists("$langdir/help/$file")) || (filesize("$CFG->dirroot/lang/en/help/$file") == 0)) { + if (( !file_exists("$langdir/help/$file")) || (filesize("$CFG->dirroot/lang/en_utf8/help/$file") == 0)) { $options["help/$file"] .= "$filemissingmark"; } else { if (filemtime("$langdir/help/$file") < filemtime("$langdir/help/$file")) { @@ -167,7 +167,7 @@ $langdir/$currentfile")."
"; echo "\n"; - link_to_popup_window("/lang/en/$currentfile", "popup", get_string("preview")); + link_to_popup_window("/lang/en_utf8/$currentfile", "popup", get_string("preview")); echo "\n"; if ($fileeditorinline == 1) { echo "\n