Help files stored in _local language packs take precedence. Implements MDL-8089.

This commit is contained in:
mudrd8mz
2007-01-08 09:04:08 +00:00
parent 7f51199bd1
commit f35a69cfca
+8
View File
@@ -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);
}