Permalink
Browse files

Help files stored in _local language packs take precedence. Implement…

…s MDL-8089.
  • Loading branch information...
1 parent 7f51199 commit f35a69cfcab81dca9dffc6cc3f0480b2e800b10b mudrd8mz committed Jan 8, 2007
Showing with 8 additions and 0 deletions.
  1. +8 −0 help.php
View
@@ -34,6 +34,14 @@
// 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);
}

0 comments on commit f35a69c

Please sign in to comment.