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

raeburn raeburn@source.lon-capa.org
Sat, 21 Mar 2009 20:02:28 -0000


raeburn		Sat Mar 21 20:02:28 2009 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/homework	grades.pm 
  Log:
  - Fix typos introduced in backports included in 1.528.2.11.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.528.2.11 loncom/homework/grades.pm:1.528.2.12
--- loncom/homework/grades.pm:1.528.2.11	Fri Mar 20 19:15:29 2009
+++ loncom/homework/grades.pm	Sat Mar 21 20:02:28 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.528.2.11 2009/03/20 19:15:29 raeburn Exp $
+# $Id: grades.pm,v 1.528.2.12 2009/03/21 20:02:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3466,8 +3466,8 @@
 	    $display =~ s/\[Part: \Q$part\E\]//;
             my $narrowtext = &mt('Tries');
 	    $display =~ s{Number of Attempts}{$narrowtext};
-	    $header .= '<th align="center">'.&mt('Old').' '.$display).'</th>'.
-		'<th align="center">'.&mt('New').' '.$display).'</th>';
+	    $header .= '<th align="center">'.&mt('Old').' '.$display.'</th>'.
+		'<th align="center">'.&mt('New').' '.$display.'</th>';
 	    $columns{$partid}+=2;
 	}
     }
@@ -4338,7 +4338,7 @@
 #		    $request->print('match='.$1."<br />\n");
 #		}
 #		$companswer =~ s|<table border=\"1\">|<table border=\"0\">|g;
-		$studentTable.='&nbsp;<b>'.$title.'</b>&nbsp;<br />&nbsp;<b>'.&mt('Correct answer').':</b><br />'.$companswer);
+		$studentTable.='&nbsp;<b>'.$title.'</b>&nbsp;<br />&nbsp;<b>'.&mt('Correct answer').':</b><br />'.$companswer;
 	    }
 
 	    my %record = &Apache::lonnet::restore($symbx,$env{'request.course.id'},$udom,$uname);
@@ -6833,7 +6833,7 @@
        ".&mt("[_1]Select[_2] a CODE from the list of all CODEs and use it.",
 	     "<a target='_blank' href='$href'>","</a>")."
     </label> 
-    ".&mt('Selected CODE is [_1]','<input readonly="readonly" type="text" size="8" name="scantron_CODE_selectedvalue" onfocus="javascript:change_radio('use_found')" onchange="javascript:change_radio('use_found')" />'));
+    ".&mt('Selected CODE is [_1]','<input readonly="readonly" type="text" size="8" name="scantron_CODE_selectedvalue" onfocus="javascript:change_radio(\'use_found\')" onchange="javascript:change_radio(\'use_found\')" />'));
 	    $r->print("\n<br />");
 	}
 	$r->print("
@@ -7750,7 +7750,7 @@
 <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("'.&mt('Please use the browse button to select a file from your local directory.').'");
 	    return false;
 	}
 	formname.submit();