MDL-42629 course: changed new course to create new course
This commit is contained in:
@@ -574,7 +574,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
||||
$actions = array();
|
||||
if ($category->can_create_course()) {
|
||||
$url = new moodle_url('/course/edit.php', array('category' => $category->id, 'returnto' => 'catmanage'));
|
||||
$actions[] = html_writer::link($url, get_string('newcourse'));
|
||||
$actions[] = html_writer::link($url, get_string('createnewcourse'));
|
||||
}
|
||||
if ($category->can_request_course()) {
|
||||
// Request a new course.
|
||||
|
||||
@@ -17,7 +17,7 @@ Feature: Test we can both create and delete a course.
|
||||
And I should see the "Course categories and courses" management page
|
||||
And I should see "Cat 1" in the "#category-listing" "css_element"
|
||||
And I should see "No courses in this category" in the "#course-listing" "css_element"
|
||||
And I click on "New course" "link" in the ".course-listing-actions" "css_element"
|
||||
And I click on "Create new course" "link" in the ".course-listing-actions" "css_element"
|
||||
And I fill the moodle form with:
|
||||
| Course full name | Test course: create a course |
|
||||
| Course short name | TCCAC |
|
||||
|
||||
@@ -378,6 +378,7 @@ $string['createcategory'] = 'Create category';
|
||||
$string['createfolder'] = 'Create a folder in {$a}';
|
||||
$string['createnew'] = 'Create new';
|
||||
$string['createnewcategory'] = 'Create new category';
|
||||
$string['createnewcourse'] = 'Create new course';
|
||||
$string['createnewsubcategory'] = 'Create new subcategory';
|
||||
$string['createsubcategoryof'] = 'Create subcategory of {$a}';
|
||||
$string['createuserandpass'] = 'Choose your username and password';
|
||||
|
||||
Reference in New Issue
Block a user