]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed "uploaded assignment" (uploadsuccess) string
authormoodler <moodler>
Mon, 28 Oct 2002 01:30:00 +0000 (01:30 +0000)
committermoodler <moodler>
Mon, 28 Oct 2002 01:30:00 +0000 (01:30 +0000)
lang/en/assignment.php
mod/assignment/upload.php

index da417084d69ad9ea783ddd5af134762525abba66..73798bea3be7ee9c010874ccced82745ccd96d2d 100644 (file)
@@ -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";
 
index 5ec0fda49911bdc8ed1c5a4100eb1f8551afc4ed..6ba58a8045a0375bbb4b8e2ff5df0498fedad739 100644 (file)
@@ -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!");
                         }