MDL-35578 - Also justify email2, used in signup
[moodle.git] / admin / settings / language.php
blob147708287908c903a39ee77fc4375d9ed629ea33
1 <?php
3 // This file defines settingpages and externalpages under the "appearance" category
5 if ($hassiteconfig) {
7 // "languageandlocation" settingpage
8 $temp = new admin_settingpage('langsettings', new lang_string('languagesettings', 'admin'));
9 $temp->add(new admin_setting_configcheckbox('autolang', new lang_string('autolang', 'admin'), new lang_string('configautolang', 'admin'), 1));
10 $temp->add(new admin_setting_configselect('lang', new lang_string('lang', 'admin'), new lang_string('configlang', 'admin'), current_language(), get_string_manager()->get_list_of_translations())); // $CFG->lang might be set in installer already, default en is in setup.php
11 $temp->add(new admin_setting_configcheckbox('langmenu', new lang_string('langmenu', 'admin'), new lang_string('configlangmenu', 'admin'), 1));
12 $temp->add(new admin_setting_langlist());
13 $temp->add(new admin_setting_configcheckbox('langcache', new lang_string('langcache', 'admin'), new lang_string('langcache_desc', 'admin'), 1));
14 $temp->add(new admin_setting_configcheckbox('langstringcache', new lang_string('langstringcache', 'admin'), new lang_string('configlangstringcache', 'admin'), 1));
15 $temp->add(new admin_setting_configtext('locale', new lang_string('localetext', 'admin'), new lang_string('configlocale', 'admin'), '', PARAM_FILE));
16 $temp->add(new admin_setting_configselect('latinexcelexport', new lang_string('latinexcelexport', 'admin'), new lang_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
18 $ADMIN->add('language', $temp);
20 } // end of speedup