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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Thu, 08 Nov 2007 20:47:59 -0000


albertel		Thu Nov  8 15:47:59 2007 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - mt receipt verification
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.486 loncom/homework/grades.pm:1.487
--- loncom/homework/grades.pm:1.486	Thu Nov  8 14:57:30 2007
+++ loncom/homework/grades.pm	Thu Nov  8 15:47:56 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.486 2007/11/08 19:57:30 albertel Exp $
+# $Id: grades.pm,v 1.487 2007/11/08 20:47:56 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -733,9 +733,12 @@
     $receipt     =~ s/[^\-\d]//g;
     my ($symb)   = &get_symb($request);
 
-    my $title.='<h3><span class="LC_info">Verifying Submission Receipt '.
-	$receipt.'</h3></span>'."\n".
-	'<h4><b>Resource: </b>'.$env{'form.probTitle'}.'</h4><br /><br />'."\n";
+    my $title.=
+	'<h3><span class="LC_info">'.
+	&mt('Verifying Submission Receipt [_1]',$receipt).
+	'</span></h3>'."\n".
+	'<h4>'.&mt('<b>Resource: </b>[_1]',$env{'form.probTitle'}).
+	'</h4>'."\n";
 
     my ($string,$contents,$matches) = ('','',0);
     my (undef,undef,$fullname) = &getclasslist('all','0');
@@ -749,11 +752,11 @@
     my $header = 
 	&Apache::loncommon::start_data_table().
 	&Apache::loncommon::start_data_table_header_row().
-	'<th>&nbsp;Fullname&nbsp;</th>'."\n".
-	'<th>&nbsp;Username&nbsp;</th>'."\n".
-	'<th>&nbsp;Domain&nbsp;</th>';
+	'<th>&nbsp;'.&mt('Fullname').'&nbsp;</th>'."\n".
+	'<th>&nbsp;'.&mt('Username').'&nbsp;</th>'."\n".
+	'<th>&nbsp;'.&mt('Domain').'&nbsp;</th>';
     if ($receiptparts) {
-	$header.='<th>&nbsp;Problem Part&nbsp;</th>';
+	$header.='<th>&nbsp;'.&mt('Problem Part').'&nbsp;</th>';
     }
     $header.=
 	&Apache::loncommon::end_data_table_header_row();
@@ -786,11 +789,12 @@
 	}
     }
     if ($matches == 0) {
-	$string = $title.'No match found for the above receipt.';
+	$string = $title.&mt('No match found for the above receipt.');
     } else {
 	$string = &jscriptNform($symb).$title.
-	    'The above receipt matches the following student'.
-	    ($matches <= 1 ? '.' : 's.')."\n".
+	    '<p>'.
+	    &mt('The above receipt matches the following [numerate,_1,student].',$matches).
+	    '</p>'.
 	    $header.
 	    $contents.
 	    &Apache::loncommon::end_data_table()."\n";