MDL-13001 - adding support for language files in local/ directory.
This commit is contained in:
@@ -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
|
||||
* ----------------------
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user