From 50e798c8a485a6c6fcfd5c02a8aab01a76120ced Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Sun, 8 Aug 2010 09:32:23 +0000 Subject: [PATCH] MDL-23625 Fixed support for local customization of the English pack in non-core plugins --- lib/moodlelib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 06b4318b9e7..c2a00417613 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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);