mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Can now specify current language on a per-user basis
This commit is contained in:
parent
c46df33643
commit
1a72314d0f
4 changed files with 34 additions and 1 deletions
|
@ -1517,6 +1517,23 @@ function get_string_from_file($identifier, $langfile, $destination) {
|
|||
}
|
||||
|
||||
|
||||
function get_list_of_languages() {
|
||||
/// Returns a list of language codes and their full names
|
||||
global $CFG;
|
||||
|
||||
if (!$langdirs = get_list_of_plugins("lang")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ($langdirs as $lang) {
|
||||
include("$CFG->dirroot/lang/$lang/moodle.php");
|
||||
$languages[$lang] = $string["thislanguage"]." ($lang)";
|
||||
unset($string);
|
||||
}
|
||||
return $languages;
|
||||
}
|
||||
|
||||
|
||||
/// ENCRYPTION ////////////////////////////////////////////////
|
||||
|
||||
function rc4encrypt($data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue