MDL-21440 - replacing hardcoded string with language string.

This commit is contained in:
Rossiani Wijaya
2010-01-28 02:19:06 +00:00
parent f5058b206b
commit b1bef4085e
2 changed files with 5 additions and 3 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 = get_records("modules")) {
$options = array();
+2
View File
@@ -1713,4 +1713,6 @@ $string['zippingbackup'] = 'Zipping backup';
$string['authenticationplugins'] = 'Authentication Plugins';
$string['chooseauthmethod'] = 'Choose authentication plugin';
$string['nocourses'] = 'No courses';
$string['requestedcourses'] = 'Requested courses';
?>