Skip to content
Browse files

MDL-21440 - replacing hardcoded string with language string.

  • Loading branch information...
1 parent d8b29f5 commit 8fed14f4d87ff52a2efcb50d28ee039d58393c24 Rossiani Wijaya committed Jan 28, 2010
Showing with 6 additions and 4 deletions.
  1. +3 −3 admin/settings/security.php
  2. +3 −1 lang/en_utf8/moodle.php
View
6 admin/settings/security.php
@@ -72,9 +72,9 @@
// "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();
View
4 lang/en_utf8/moodle.php
@@ -1820,4 +1820,6 @@
$string['authenticationplugins'] = 'Authentication Plugins';
$string['chooseauthmethod'] = 'Choose authentication plugin';
-?>
+$string['nocourses'] = 'No courses';
+$string['requestedcourses'] = 'Requested courses';
+?>

0 comments on commit 8fed14f

Please sign in to comment.
Something went wrong with that request. Please try again.