From: moodler <moodler> Date: Mon, 28 Oct 2002 01:30:00 +0000 (+0000) Subject: Fixed "uploaded assignment" (uploadsuccess) string X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=52ab14dd822cfa64e96d0bd5519b5df2f2efe570;p=moodle.git Fixed "uploaded assignment" (uploadsuccess) string --- diff --git a/lang/en/assignment.php b/lang/en/assignment.php index da417084d6..73798bea3b 100644 --- a/lang/en/assignment.php +++ b/lang/en/assignment.php @@ -24,6 +24,7 @@ $string['submitassignment'] = "Submit your assignment using this form"; $string['submitted'] = "Submitted"; $string['typeuploadsingle'] = "Upload a single file, worth between 0 - 100 marks"; $string['uploadedfiles'] = "uploaded files"; +$string['uploadsuccess'] = "Uploaded '\$a' successfully"; $string['viewsubmissions'] = "View \$a submitted assignments"; $string['yoursubmission'] = "Your submission"; diff --git a/mod/assignment/upload.php b/mod/assignment/upload.php index 5ec0fda499..6ba58a8045 100644 --- a/mod/assignment/upload.php +++ b/mod/assignment/upload.php @@ -52,7 +52,7 @@ if ($submission) { $submission->timemodified = time(); if (update_record("assignment_submissions", $submission)) { - print_heading("Uploaded '$newfile_name' successfully."); + print_heading(get_string("uploadsuccess", "assignment", $newfile_name) ); } else { notify("File was uploaded OK but could not update your submission!"); } @@ -63,7 +63,7 @@ $newsubmission->timemodified = time(); $newsubmission->numfiles = 1; if (insert_record("assignment_submissions", $newsubmission)) { - print_heading("Uploaded '$newfile_name' successfully."); + print_heading(get_string("uploadsuccess", "assignment", $newfile_name) ); } else { notify("'$newfile_name' was uploaded OK but submission did not register!"); }