Skip to content

Commit

Permalink
MDL-23625 Fixed support for local customization of the English pack i…
Browse files Browse the repository at this point in the history
…n non-core plugins
  • Loading branch information
mudrd8mz committed Aug 8, 2010
1 parent 4aebb58 commit 50e798c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5794,6 +5794,10 @@ public function load_component_strings($component, $lang, $disablecache=false) {
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);
Expand Down

0 comments on commit 50e798c

Please sign in to comment.