Commit 4ae3ff3b authored by Nigel McNie's avatar Nigel McNie
Browse files

Show which language is the site default in the 'Language' dropdown for user preferences.

parent 054e89d1
......@@ -121,13 +121,14 @@ $elements['messages'] = array(
),
'help' => true,
);
$languages = get_languages();
$elements['lang'] = array(
'type' => 'select',
'defaultvalue' => $prefs->lang,
'title' => get_string('language', 'account'),
'options' => array_merge(array('default' => get_string('sitedefault', 'admin')), get_languages()),
'options' => array_merge(array('default' => get_string('sitedefault', 'admin') . ' (' . $languages[get_config('lang')] . ')'), $languages),
'help' => true,
'ignore' => count(get_languages()) < 2,
'ignore' => count($languages) < 2,
);
$elements['addremovecolumns'] = array(
'type' => 'radio',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment