Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / admin / settings / language.php
blobea155e2c93efeeefc11563b7744cd4f41534e0e3
1 <?php // $Id$
3 // This file defines settingpages and externalpages under the "appearance" category
5 // "languageandlocation" settingpage
6 $temp = new admin_settingpage('langsettings', get_string('languagesettings', 'admin'));
7 $temp->add(new admin_setting_configselect('lang', get_string('lang', 'admin'), get_string('configlang', 'admin'), current_language(), get_list_of_languages())); // $CFG->lang might be set in installer already, default en or en_utf8 is in setup.php
8 $temp->add(new admin_setting_configcheckbox('langmenu', get_string('langmenu', 'admin'), get_string('configlangmenu', 'admin'), 1));
9 $temp->add(new admin_setting_langlist());
10 $temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('configlangcache', 'admin'), 1));
11 $temp->add(new admin_setting_configtext('locale', get_string('localetext', 'admin'), get_string('configlocale', 'admin'), '', PARAM_FILE));
13 // new CFG variable for excel encoding
14 $temp->add(new admin_setting_configselect('latinexcelexport', get_string('latinexcelexport', 'admin'), get_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
17 $ADMIN->add('language', $temp);
19 $ADMIN->add('language', new admin_externalpage('langedit', get_string('langedit', 'admin'), "$CFG->wwwroot/$CFG->admin/lang.php"));
20 $ADMIN->add('language', new admin_externalpage('langimport', get_string('langpacks', 'admin'), "$CFG->wwwroot/$CFG->admin/langimport.php"));