MDL-13001 - adding support for language files in local/ directory.

This commit is contained in:
mjollnir_
2008-01-15 01:39:55 +00:00
parent 8b2a37e7b1
commit 0972aa2291
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -48,6 +48,16 @@
* with $oldversion set to 0, so that all the updates run.
*
*
* Local language support
* ----------------------
*
* Moodle supports looking in the local/ directory for language files.
* You would need to create local/lang/en_utf8/local.php
* and then could call strings like get_string('key', 'local');
* Make sure you don't call the language file something that moodle already has one of,
* stick to local or $clientname)
*
*
* Local admin menu items
* ----------------------
*
+1
View File
@@ -5005,6 +5005,7 @@ function get_string($identifier, $module='', $a=NULL, $extralocations=NULL) {
} else {
$locations[] = $CFG->dataroot.'/lang/';
$locations[] = $CFG->dirroot.'/lang/';
$locations[] = $CFG->dirroot.'/local/lang/';
}
/// Add extra places to look for strings for particular plugin types.