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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 27 Apr 2004 15:15:41 -0000


sakharuk		Tue Apr 27 11:15:41 2004 EDT

  Modified files:              
    /loncom/interface	lonhelper.pm 
  Log:
  Localization of warning messages from parameter.helper is done.
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.75 loncom/interface/lonhelper.pm:1.76
--- loncom/interface/lonhelper.pm:1.75	Thu Apr 22 12:47:26 2004
+++ loncom/interface/lonhelper.pm	Tue Apr 27 11:15:41 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.75 2004/04/22 16:47:26 albertel Exp $
+# $Id: lonhelper.pm,v 1.76 2004/04/27 15:15:41 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2671,6 +2671,7 @@
 no strict;
 @ISA = ("Apache::lonhelper::element");
 use strict;
+use Apache::lonlocal;
 
 BEGIN {
     &Apache::lonhelper::register('Apache::lonhelper::string',
@@ -3102,7 +3103,7 @@
 
     # Print the granularity, depending on the action
     if ($vars->{GRANULARITY} eq 'whole_course') {
-        $resourceString .= '<li>'.&mt('for').' <b>'.&mt('all resources in the course').'</b></li>';
+        $resourceString .= '<li>'.&mt('for <b>all resources in the course</b>').'</li>';
         $level = 9; # general course, see lonparmset.pm perldoc
         $affectedResourceId = "0.0";
         $symb = 'a';
@@ -3176,7 +3177,7 @@
     
     # Print targets
     if ($vars->{TARGETS} eq 'course') {
-        $result .= '<li>'.&mt('for').' <b>'.&mt('all students in course').'</b></li>';
+        $result .= '<li>'.&mt('for <b>all students in course</b>').'</li>';
     } elsif ($vars->{TARGETS} eq 'section') {
         my $section = $vars->{SECTION_NAME};
         $result .= "<li>".&mt('for section')." <b>$section</b></li>";
@@ -3191,6 +3192,7 @@
         $username = substr($username, 0, rindex($username, ':'));
         my $name = $classlist->{$username}->[6];
         $result .= "<li>".&mt('for')." <b>$name</b></li>";
+##        $result .= "<li>".&mt('for [_1]',"<b>$name</b>")."</li>";
         $level -= 6;
         my ($uname, $udom) = split /:/, $vars->{USER_NAME};
         $result .= "<input type='hidden' name='uname' value='".