MDL-23625 Fixed support for local customization of the English pack in non-core plugins

This commit is contained in:
David Mudrak
2010-08-08 09:32:23 +00:00
parent 4aebb58ded
commit 50e798c8a4
+4
View File
@@ -5794,6 +5794,10 @@ class core_string_manager implements string_manager {
include("$location/lang/en/$file.php");
$originalkeys = array_keys($string);
$originalkeys = array_flip($originalkeys);
// and then corresponding local english if present
if (file_exists("$this->localroot/en_local/$file.php")) {
include("$this->localroot/en_local/$file.php");
}
// now loop through all langs in correct order
$deps = $this->get_language_dependencies($lang);