From ba17a2c3f82922ccf7816600f6a06d0bf93afb60 Mon Sep 17 00:00:00 2001 From: Julien Boulen Date: Mon, 20 Mar 2017 17:59:38 +0100 Subject: [PATCH] MDL-58070 language: reword visible core string --- admin/tool/uploadcourse/classes/step2_form.php | 4 ++-- course/edit_form.php | 4 ++-- lang/en/moodle.php | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) 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 3011e198cd4..6b4181cfe72 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 e18c1727e42..522e5aea070 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';