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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 28 Nov 2007 01:46:15 -0000


albertel		Tue Nov 27 20:46:15 2007 EDT

  Modified files:              
    /loncom/interface	lonevaluate.pm 
  Log:
  - &mt()ing
  
  
Index: loncom/interface/lonevaluate.pm
diff -u loncom/interface/lonevaluate.pm:1.23 loncom/interface/lonevaluate.pm:1.24
--- loncom/interface/lonevaluate.pm:1.23	Tue Nov 27 20:41:49 2007
+++ loncom/interface/lonevaluate.pm	Tue Nov 27 20:46:12 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Evaluate
 #
-# $Id: lonevaluate.pm,v 1.23 2007/11/28 01:41:49 albertel Exp $
+# $Id: lonevaluate.pm,v 1.24 2007/11/28 01:46:12 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -33,7 +33,7 @@
 use Apache::Constants qw(:common);
 use Apache::loncommon();
 use Apache::lonenc();
-use Apache::lonlocal; # must not have ()
+use Apache::lonlocal;
 use LONCAPA();
 
 sub handler {
@@ -100,20 +100,20 @@
 
             my $start_page = 
 	        &Apache::loncommon::start_page('Evaluate Resource',$js);
-	    $r->print(<<ENDHEADER);
-$start_page
-<h1>Thank you for your input!</h1>
-ENDHEADER
-       $r->print('Saving feedback: '.
-           &Apache::lonnet::put('nohist_resevaldata',\%currenteval,$rdomain,$rauth));
+	    $r->print('
+'.$start_page.'
+<h1>'.&mt('Thank you for your input!').'</h1>
+');
+       $r->print(&mt('Saving feedback: [_1]',
+		     &Apache::lonnet::put('nohist_resevaldata',\%currenteval,$rdomain,$rauth)));
            unless ($already) {
-	       $r->print('<br />Logging first evaluation');
+	       $r->print('<br />'.&mt('Logging first evaluation'));
            }
            $r->print(
             '<script type="text/javascript">setTimeout("goback()",2000);</script>'.&Apache::loncommon::end_page());
            return OK;
         } else {
-	    $warning='Please fill out all fields below';
+	    $warning=&mt('Please fill out all fields below');
         }
    
     }