From f35a69cfcab81dca9dffc6cc3f0480b2e800b10b Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Mon, 8 Jan 2007 09:04:08 +0000 Subject: [PATCH] Help files stored in _local language packs take precedence. Implements MDL-8089. --- help.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/help.php b/help.php index 96fd8199bd..330712ff71 100644 --- a/help.php +++ b/help.php @@ -34,6 +34,14 @@ if (!empty($file)) { // Get the list of parent languages. if (empty($forcelang)) { $langs = array(current_language(), get_string('parentlanguage'), 'en_utf8'); // Fallback + // _local language packs take precedence + $xlangs = array(); + foreach ($langs as $lang) { + $xlangs[] = $lang . '_local'; + $xlangs[] = $lang; + } + $langs = $xlangs; + unset($xlangs); } else { $langs = array($forcelang); } -- 2.39.5