Skip to content

Commit

Permalink
MDL-58070 language: reword visible core string
Browse files Browse the repository at this point in the history
  • Loading branch information
jboulen committed Mar 22, 2017
1 parent 98c4094 commit ba17a2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/tool/uploadcourse/classes/step2_form.php
Expand Up @@ -89,8 +89,8 @@ public function definition () {
$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'));
Expand Down
4 changes: 2 additions & 2 deletions course/edit_form.php
Expand Up @@ -106,8 +106,8 @@ function definition() {
$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)) {
Expand Down
2 changes: 2 additions & 0 deletions lang/en/moodle.php
Expand Up @@ -381,6 +381,8 @@
$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';
Expand Down

0 comments on commit ba17a2c

Please sign in to comment.