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

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 28 Dec 2006 19:43:25 -0000


raeburn		Thu Dec 28 14:43:25 2006 EDT

  Modified files:              
    /loncom/interface	lonmsg.pm 
  Log:
  Getting the interpolation in &mt() straight.
  
  
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.194 loncom/interface/lonmsg.pm:1.195
--- loncom/interface/lonmsg.pm:1.194	Thu Dec 28 13:47:15 2006
+++ loncom/interface/lonmsg.pm	Thu Dec 28 14:43:24 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging
 #
-# $Id: lonmsg.pm,v 1.194 2006/12/28 18:47:15 raeburn Exp $
+# $Id: lonmsg.pm,v 1.195 2006/12/28 19:43:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -274,20 +274,20 @@
         $coursetext .= "\n\n";
     }
     my $body = $coursetext. 
-               &mt('You received a[_1] message from '.$sender.' in LON-CAPA.',$critical).' '.&mt("The subject is 
+               &mt('You received a'.$critical.' message from [_1] in LON-CAPA.',$sender).' '.&mt('The subject is 
 
- $subj
+ [_1]
 
-")."\n".
+',$subj)."\n".
 '=== '.&mt('Excerpt')." ============================================================
 $text
 ========================================================================
 
-".&mt("Use 
+".&mt('Use 
 
- $url
+ [_1]
 
-to access the full message.");
+to access the full message.',$url);
     &sendemail($to,'New'.$critical.' message from '.$sender,$body);
 }
 # ============================================================= Check for email