[LON-CAPA-cvs] cvs: loncom /homework grades.pm

raeburn raeburn@source.lon-capa.org
Wed, 19 Aug 2009 19:25:22 -0000


raeburn		Wed Aug 19 19:25:22 2009 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Remove escaped quotes from phrase to localize. 
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.578 loncom/homework/grades.pm:1.579
--- loncom/homework/grades.pm:1.578	Sat Jun  6 19:23:30 2009
+++ loncom/homework/grades.pm	Wed Aug 19 19:25:21 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.578 2009/06/06 19:23:30 raeburn Exp $
+# $Id: grades.pm,v 1.579 2009/08/19 19:25:21 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7718,15 +7718,17 @@
     my $syllabuslink = '<a href="javascript:ToSyllabus();">'.&mt('Syllabus').'</a>'.
                        ('&nbsp'x2).&mt('(shows course personnel)'); 
     my $default_form_data=&defaultFormData(&get_symb($r,1));
+    my $nofile_alert = &mt('Please use the browse button to select a file from your local directory.');
+    my $nocourseid_alert = &mt("Please use the 'Select Course' link to open a separate window where you can search for a course to which a file can be uploaded.");
     $r->print('
 <script type="text/javascript" language="javascript">
     function checkUpload(formname) {
 	if (formname.upfile.value == "") {
-	    alert("'.&mt('Please use the browse button to select a file from your local directory.').'");
+	    alert("'.$nofile_alert.'");
 	    return false;
 	}
         if (formname.courseid.value == "") {
-            alert("'.&mt('Please use the \"Select Course\" link to open a separate window where you can search for a course to which a file can be uploaded.').'");
+            alert("'.$nocourseid_alert.'");
             return false;
         }
 	formname.submit();