diff --git a/lang/en/assignment.php b/lang/en/assignment.php index 3b3add1b488..02a6501fedd 100644 --- a/lang/en/assignment.php +++ b/lang/en/assignment.php @@ -1,4 +1,4 @@ -username has updated their assignment submission +$a->username has updated their assignment submission for \'$a->assignment\' It is available here: $a->url'; -$string['emailteachermailhtml'] = '$a->username has updated their assignment submission +$string['emailteachermailhtml'] = '$a->username has updated their assignment submission for \'$a->assignment\'

It is url\">available on the web site.'; $string['existingfiledeleted'] = 'Existing file has been deleted: $a'; @@ -41,6 +41,7 @@ $string['maximumsize'] = 'Maximum size'; $string['modulename'] = 'Assignment'; $string['modulenameplural'] = 'Assignments'; $string['newsubmissions'] = 'Assignments submitted'; +$string['noassignments'] = 'There are no assignments yet'; $string['notgradedyet'] = 'Not graded yet'; $string['notsubmittedyet'] = 'Not submitted yet'; $string['overwritewarning'] = 'Warning: uploading again will REPLACE your current submission'; diff --git a/mod/assignment/index.php b/mod/assignment/index.php index 7b6c8cfada9..234fd047a6d 100644 --- a/mod/assignment/index.php +++ b/mod/assignment/index.php @@ -24,7 +24,7 @@ print_header_simple($strassignments, "", $strassignments, "", "", true, "", navmenu($course)); if (! $assignments = get_all_instances_in_course("assignment", $course)) { - notice("There are no assignments", "../../course/view.php?id=$course->id"); + notice(get_string('noassignments', 'assignment'), "../../course/view.php?id=$course->id"); die; }