[LON-CAPA-cvs] cvs: loncom /interface/spreadsheet studentcalc.pm

bisitz bisitz@source.lon-capa.org
Tue, 09 Jun 2009 14:15:42 -0000


bisitz		Tue Jun  9 14:15:42 2009 EDT

  Modified files:              
    /loncom/interface/spreadsheet	studentcalc.pm 
  Log:
  - Localization: Added &mt call
  - Replaced hardcoded font color by appropriate warning style
  
  
Index: loncom/interface/spreadsheet/studentcalc.pm
diff -u loncom/interface/spreadsheet/studentcalc.pm:1.43 loncom/interface/spreadsheet/studentcalc.pm:1.44
--- loncom/interface/spreadsheet/studentcalc.pm:1.43	Fri Jul  6 19:50:00 2007
+++ loncom/interface/spreadsheet/studentcalc.pm	Tue Jun  9 14:15:42 2009
@@ -1,5 +1,5 @@
 #
-# $Id: studentcalc.pm,v 1.43 2007/07/06 19:50:00 albertel Exp $
+# $Id: studentcalc.pm,v 1.44 2009/06/09 14:15:42 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -223,16 +223,16 @@
     }
     $tableheader .="</tr>\n";
     if ($self->blackout()) {
-        $r->print('<font color="red" size="+2"><p>'.
+        $r->print('<p class="LC_warning">'.
                   &mt('Some computations are not available at this time.').'<br />'.
                   &mt('There are problems whose status you are not allowed to view.').
-                  '</font></p>'."\n");
+                  '</p>'."\n");
     } else {
         $r->print($tableheader);
         #
         # Print out template row
         if (exists($env{'request.role.adv'}) && $env{'request.role.adv'}) {
-            $r->print('<tr><td>Template</td><td>&nbsp;</td>'.
+            $r->print('<tr><td>'.&mt('Template').'</td><td>&nbsp;</td>'.
                       $self->html_template_row($num_uneditable,
                                                $importcolor)."</tr>\n");
         }