2009-11-01 10:32:02 +00:00
< ? php
2006-09-03 14:52:43 +00:00
// This file defines settingpages and externalpages under the "appearance" category
2010-08-24 23:17:19 +00:00
if ( $hassiteconfig ) {
2007-10-28 22:35:00 +00:00
2007-12-19 17:35:20 +00:00
// "languageandlocation" settingpage
2011-12-06 11:07:55 +13:00
$temp = new admin_settingpage ( 'langsettings' , new lang_string ( 'languagesettings' , 'admin' ));
$temp -> add ( new admin_setting_configcheckbox ( 'autolang' , new lang_string ( 'autolang' , 'admin' ), new lang_string ( 'configautolang' , 'admin' ), 1 ));
$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
$temp -> add ( new admin_setting_configcheckbox ( 'langmenu' , new lang_string ( 'langmenu' , 'admin' ), new lang_string ( 'configlangmenu' , 'admin' ), 1 ));
2007-12-19 17:35:20 +00:00
$temp -> add ( new admin_setting_langlist ());
2011-12-06 11:07:55 +13:00
$temp -> add ( new admin_setting_configcheckbox ( 'langcache' , new lang_string ( 'langcache' , 'admin' ), new lang_string ( 'langcache_desc' , 'admin' ), 1 ));
$temp -> add ( new admin_setting_configcheckbox ( 'langstringcache' , new lang_string ( 'langstringcache' , 'admin' ), new lang_string ( 'configlangstringcache' , 'admin' ), 1 ));
$temp -> add ( new admin_setting_configtext ( 'locale' , new lang_string ( 'localetext' , 'admin' ), new lang_string ( 'configlocale' , 'admin' ), '' , PARAM_FILE ));
$temp -> add ( new admin_setting_configselect ( 'latinexcelexport' , new lang_string ( 'latinexcelexport' , 'admin' ), new lang_string ( 'configlatinexcelexport' , 'admin' ), '0' , array ( '0' => 'Unicode' , '1' => 'Latin' )));
2007-02-21 04:10:26 +00:00
2007-12-19 17:35:20 +00:00
$ADMIN -> add ( 'language' , $temp );
2006-09-03 14:52:43 +00:00
2007-10-28 22:35:00 +00:00
} // end of speedup