[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstudentassessment.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Tue, 16 Sep 2008 08:49:11 -0000


bisitz		Tue Sep 16 04:49:11 2008 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  - Localization: Added missing &mt() calls to warning and error messages
  - Use standard style instead of hardcoded style for "No Course Data"
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.148 loncom/interface/statistics/lonstudentassessment.pm:1.149
--- loncom/interface/statistics/lonstudentassessment.pm:1.148	Sun Sep 14 11:16:30 2008
+++ loncom/interface/statistics/lonstudentassessment.pm	Tue Sep 16 04:49:08 2008
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.148 2008/09/14 15:16:30 raeburn Exp $
+# $Id: lonstudentassessment.pm,v 1.149 2008/09/16 08:49:08 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -849,10 +849,13 @@
     } else {
 	my $error = $1;
 	if (scalar(@tmp) < 1) {
-	    $Str .= '<font color="blue">No Course Data</font>'."\n";
+	    $Str .= '<span class="LC_warning">'
+                   .&mt('No Course Data')
+                   .'</span>'."\n";
 	} else {
-	    $Str .= '<span class="LC_error">Error getting student data ('.
-		$error.') </span>'."\n";
+            $Str .= '<span class="LC_error">'
+                   .&mt('Error getting student data ([_1])',$error)
+                   .'</span>'."\n";
 	}
         $nodata_count++;
         $r->print($Str);