MDL-21440 - replacing hardcoded string with language string.

This commit is contained in:
Rossiani Wijaya
2010-01-28 02:12:30 +00:00
parent d8b29f5c2f
commit 8fed14f4d8
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -72,9 +72,9 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "modulesecurity" settingpage
$temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin'));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => 'No courses',
'all' => 'All courses',
'requested' => 'Requested courses')));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => get_string('nocourses'),
'all' => get_string('fulllistofcourses'),
'requested' => get_string('requestedcourses'))));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
if (!$options = $DB->get_records('modules')) {
$options = array();
+3 -1
View File
@@ -1820,4 +1820,6 @@ $string['zippingbackup'] = 'Zipping backup';
$string['authenticationplugins'] = 'Authentication Plugins';
$string['chooseauthmethod'] = 'Choose authentication plugin';
?>
$string['nocourses'] = 'No courses';
$string['requestedcourses'] = 'Requested courses';
?>