diff --git a/admin/tool/uploadcourse/classes/step2_form.php b/admin/tool/uploadcourse/classes/step2_form.php index cb69f1ebaa8..460150018b8 100644 --- a/admin/tool/uploadcourse/classes/step2_form.php +++ b/admin/tool/uploadcourse/classes/step2_form.php @@ -89,8 +89,8 @@ class tool_uploadcourse_step2_form extends tool_uploadcourse_base_form { $choices = array(); $choices['0'] = get_string('hide'); $choices['1'] = get_string('show'); - $mform->addElement('select', 'defaults[visible]', get_string('visible'), $choices); - $mform->addHelpButton('defaults[visible]', 'visible'); + $mform->addElement('select', 'defaults[visible]', get_string('coursevisibility'), $choices); + $mform->addHelpButton('defaults[visible]', 'coursevisibility'); $mform->setDefault('defaults[visible]', $courseconfig->visible); $mform->addElement('date_selector', 'defaults[startdate]', get_string('startdate')); diff --git a/course/edit_form.php b/course/edit_form.php index ea22fe71f31..4c03e2db761 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -106,8 +106,8 @@ class course_edit_form extends moodleform { $choices = array(); $choices['0'] = get_string('hide'); $choices['1'] = get_string('show'); - $mform->addElement('select', 'visible', get_string('visible'), $choices); - $mform->addHelpButton('visible', 'visible'); + $mform->addElement('select', 'visible', get_string('coursevisibility'), $choices); + $mform->addHelpButton('visible', 'coursevisibility'); $mform->setDefault('visible', $courseconfig->visible); if (!empty($course->id)) { if (!has_capability('moodle/course:visibility', $coursecontext)) { diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 839580f0cce..24fa36d7ec9 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -381,6 +381,8 @@ $string['coursesummary'] = 'Course summary'; $string['coursesummary_help'] = 'The course summary is displayed in the list of courses. A course search searches course summary text in addition to course names.'; $string['coursetitle'] = 'Course: {$a->course}'; $string['courseupdates'] = 'Course updates'; +$string['coursevisibility'] = 'Course visibility'; +$string['coursevisibility_help'] = 'This setting determines whether the course appears in the list of courses and whether students can access it. If set to Hide, then access is restricted to users with the capability to view hidden courses (such as teachers).'; $string['create'] = 'Create'; $string['createaccount'] = 'Create my new account'; $string['createcategory'] = 'Create category';