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

raeburn raeburn@source.lon-capa.org
Wed, 20 May 2009 20:27:37 -0000


raeburn		Wed May 20 20:27:37 2009 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm lonnotify.pm 
  Log:
  - Reverse change in lonhtmlcommon.pm 1.185.
    Text of submit button, passed as third arg in lonhtmlcommon::submit_row(), should be localized before routine is called.  
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.216 loncom/interface/lonhtmlcommon.pm:1.217
--- loncom/interface/lonhtmlcommon.pm:1.216	Wed May 20 17:39:06 2009
+++ loncom/interface/lonhtmlcommon.pm	Wed May 20 20:27:37 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.216 2009/05/20 17:39:06 bisitz Exp $
+# $Id: lonhtmlcommon.pm,v 1.217 2009/05/20 20:27:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1772,7 +1772,6 @@
 
 sub submit_row {
     my ($title,$cmd,$submit_text,$css_class) = @_;
-    $submit_text = &mt($submit_text);
     my $output = &row_title($title,$css_class,'LC_pick_box_submit');
     $output .= qq|
              <br />
Index: loncom/interface/lonnotify.pm
diff -u loncom/interface/lonnotify.pm:1.34 loncom/interface/lonnotify.pm:1.35
--- loncom/interface/lonnotify.pm:1.34	Mon May 11 16:51:27 2009
+++ loncom/interface/lonnotify.pm	Wed May 20 20:27:37 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Sending messages
 #
-# $Id: lonnotify.pm,v 1.34 2009/05/11 16:51:27 bisitz Exp $
+# $Id: lonnotify.pm,v 1.35 2009/05/20 20:27:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -164,7 +164,7 @@
     &Apache::lonhtmlcommon::add_breadcrumb({text=>"Display options"});
 
     my $cmd = 'display';
-    my $submit_text = 'Display e-mail';
+    my $submit_text = &mt('Display e-mail');
     my @roles = ('dc');
     my $now = time;