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

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 23 Apr 2006 05:49:58 -0000


albertel		Sun Apr 23 01:49:58 2006 EDT

  Modified files:              
    /loncom/interface	lonmsgdisplay.pm 
  Log:
  - localize some messages
  
  
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.9 loncom/interface/lonmsgdisplay.pm:1.10
--- loncom/interface/lonmsgdisplay.pm:1.9	Sun Apr 23 01:34:45 2006
+++ loncom/interface/lonmsgdisplay.pm	Sun Apr 23 01:49:57 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging display
 #
-# $Id: lonmsgdisplay.pm,v 1.9 2006/04/23 05:34:45 albertel Exp $
+# $Id: lonmsgdisplay.pm,v 1.10 2006/04/23 05:49:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1934,7 +1934,8 @@
 	my ($result,$msg) = 
 	    &statuschange($env{'form.markdel'},'deleted',$folder);
 	if (!$result) {
-	    $r->print('<p class="LC_error">Failed to delete the message.</p>'.
+	    $r->print('<p class="LC_error">'.
+		      &mt('Failed to delete the message.').'</p>'.
 		      '<p class="LC_error">'.$msg."</p>\n");
 	}
 	&Apache::loncommunicate::menu($r);
@@ -1957,12 +1958,13 @@
 	&printheader($r,'','Moved Messages');
 	if ($failed) {
 	    $r->print('<p class="LC_error">
-                          Failed to move '.$failed.' message(s)</p>');
+                          '.&mt('Failed to move [_1] message(s)',$failed).
+		      '</p>');
 	    $r->print('<p class="LC_error">'.
 		      join("</p>\n<p class=\"LC_error\">",@failed_msg).
 		      "</p>\n");
 	}
-	$r->print('Moved '.$total.' message(s)<p>');
+	$r->print(&mt('Moved [_1] message(s)',$total).'<p>');
 	&Apache::loncommunicate::menu($r);
 	&disall($r,($folder?$folder:$dismode));
     } elsif ($env{'form.markeddel'}) {
@@ -1983,12 +1985,13 @@
 	&printheader($r,'','Deleted Messages');
 	if ($failed) {
 	    $r->print('<p class="LC_error">
-                          Failed to delete '.$failed.' message(s)</p>');
+                          '.&mt('Failed to delete [_1] message(s)',$failed).
+		      '</p>');
 	    $r->print('<p class="LC_error">'.
 		      join("</p>\n<p class=\"LC_error\">",@failed_msg).
 		      "</p>\n");
 	}
-	$r->print('Deleted '.$total.' message(s)<p>');
+	$r->print(&mt('Deleted [_1] message(s)',$total).'<p>');
 	&Apache::loncommunicate::menu($r);
 	&disall($r,($folder?$folder:$dismode));
     } elsif ($env{'form.markunread'}) {