notify("Error deleting course $course->shortname");
return false;
}
- notify("Deleted course $course->shortname", 'notifysuccess'); // TODO: localize
+ notify(get_string('coursedeleted', '', $course->shortname), 'notifysuccess');
}
}
events_trigger('category_deleted', $category);
- notify("Deleted category $category->name", 'notifysuccess'); // TODO: localize
+ notify(get_string('coursecategorydeleted', '', format_string($category->name)), 'notifysuccess');
return true;
}
notify("Error moving courses");
return false;
}
- notify("Moved courses from $category->name", 'notifysuccess'); // TODO: localize
+ notify(get_string('coursesmovedout', '', format_string($category->name)), 'notifysuccess');
}
// now delete anything that may depend on course category context
events_trigger('category_deleted', $category);
- notify("Deleted category $category->name", 'notifysuccess'); // TODO: localize
+ notify(get_string('coursecategorydeleted', '', format_string($category->name)), 'notifysuccess');
return true;
}
$string['coursebackup'] = 'Course backup';
$string['coursecategories'] = 'Course categories';
$string['coursecategory'] = 'Course category';
+$string['coursecategorydeleted'] = 'Deleted course category $a';
$string['coursecreators'] = 'Course creator';
$string['coursecreatorsdescription'] = 'Course creators can create new courses and teach in them.';
+$string['coursedeleted'] = 'Deleted course $a';
$string['coursefiles'] = 'Course files';
$string['courseformatdata'] = 'Course format data';
$string['courseformats'] = 'Course formats';
$string['courserestore'] = 'Course restore';
$string['courses'] = 'Courses';
$string['coursescategory'] = 'Courses in the same category';
+$string['coursesmovedout'] = 'Courses moved out from $a';
$string['coursespending'] = 'Courses pending approval';
$string['coursestaught'] = 'Courses I have taught';
$string['courseupdates'] = 'Course updates';