mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-58070-visible-reword' of https://github.com/DSI-Universite-Rennes2/moodle
This commit is contained in:
commit
842217de6c
@ -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'));
|
||||
|
@ -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)) {
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user