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

bisitz bisitz at source.lon-capa.org
Fri Aug 23 12:24:33 EDT 2013


bisitz		Fri Aug 23 16:24:33 2013 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Internationalization: Added missing &mt() calls
  - Fixed some minor documentation typos
  
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.702 loncom/homework/grades.pm:1.703
--- loncom/homework/grades.pm:1.702	Thu Aug 15 14:10:09 2013
+++ loncom/homework/grades.pm	Fri Aug 23 16:24:33 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.702 2013/08/15 14:10:09 kruse Exp $
+# $Id: grades.pm,v 1.703 2013/08/23 16:24:33 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1976,7 +1976,7 @@
 	    $request->print(&show_problem($request,$symb,$uname,$udom,0,1,$mode));
 	}
 
-	# kwclr is the only variable that is guaranteed to be non blank 
+	# kwclr is the only variable that is guaranteed to be non-blank 
         # if this subroutine has been called once.
 	my %keyhash = ();
 #	if ($env{'form.kwclr'} eq '' && $env{'form.handgrade'} eq 'yes') {
@@ -4143,11 +4143,12 @@
 
 sub csvuploadmap_footer {
     my ($request,$i,$keyfields) =@_;
+    my $buttontext = &mt('Assign Grades');
     $request->print(<<ENDPICK);
 </table>
 <input type="hidden" name="nfields" value="$i" />
 <input type="hidden" name="keyfields" value="$keyfields" />
-<input type="button" onclick="javascript:verify(this.form)" value="Assign Grades" /><br />
+<input type="button" onclick="javascript:verify(this.form)" value="$buttontext" /><br />
 </form>
 ENDPICK
 }
@@ -4268,7 +4269,7 @@
     }
     # FIXME do a check for any duplicated user ids...
     # FIXME do a check for any invalid user ids?...
-    $request->print('<input type="submit" value="Assign Grades" /><br />
+    $request->print('<input type="submit" value="'.&mt('Assign Grades').'" /><br />
 <hr /></form>'."\n");
     return '';
 }
@@ -5086,7 +5087,7 @@
 Next each scanline is checked for any errors of either 'missing
 bubbles' (it's an error because it may have been mis-scanned
 because too light bubbling), 'double bubble' (each bubble line should
-have no more that one letter picked), invalid or duplicated CODE,
+have no more than one letter picked), invalid or duplicated CODE,
 invalid student/employee ID
 
 If the CODE option is used that determines the randomization of the
@@ -6440,7 +6441,11 @@
 	}
     }
     if ($err) {
-	$r->print("<span class=\"LC_warning\">Unable to accept last correction, an error occurred :$errmsg:</span>");
+        $r->print(
+            '<p class="LC_error">'
+           .&mt('Unable to accept last correction, an error occurred: [_1]',
+                $errmsg)
+           .'</sp>');
     } else {
 	&scantron_put_line($scanlines,$scan_data,$which,$line,$skip);
 	&scantron_putfile($scanlines,$scan_data);
@@ -6688,7 +6693,7 @@
     if (!$symb) {return '';}
     my $default_form_data=&defaultFormData($symb);
     
-    # do the detection of only doing skipped records first befroe we delete
+    # do the detection of only doing skipped records first before we delete
     # them when doing the corrections reset
     if ($env{'form.scantron_options_redo'} ne 'redo_skipped_ready') {
 	&reset_skipping_status();




More information about the LON-CAPA-cvs mailing list