--- loncom/interface/lonhelper.pm 2004/04/27 15:32:45 1.77
+++ loncom/interface/lonhelper.pm 2004/04/27 18:30:35 1.79
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# .helper XML handler to implement the LON-CAPA helper
#
-# $Id: lonhelper.pm,v 1.77 2004/04/27 15:32:45 sakharuk Exp $
+# $Id: lonhelper.pm,v 1.79 2004/04/27 18:30:35 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3114,7 +3114,7 @@ sub render {
my $title = $res->compTitle();
$symb = $res->symb();
$navmap->untieHashes();
- $resourceString .= &mt('
for the map named [_1]',$title);
+ $resourceString .= ''.&mt('for the map named [_1]',"$title").'';
$level = 8;
$affectedResourceId = $vars->{RESOURCE_ID};
$paramlevel = 'map';
@@ -3124,7 +3124,7 @@ sub render {
$symb = $res->symb();
my $title = $res->compTitle();
$navmap->untieHashes();
- $resourceString .= &mt('for the resource named [_1]',$title);
+ $resourceString .= ''.&mt('for the resource named [_1]',"$title").'';
$level = 7;
$affectedResourceId = $vars->{RESOURCE_ID};
$paramlevel = 'full';
@@ -3180,7 +3180,7 @@ sub render {
$result .= ''.&mt('for all students in course').'';
} elsif ($vars->{TARGETS} eq 'section') {
my $section = $vars->{SECTION_NAME};
- $result .= &mt('for section [_1]',$section);
+ $result .= ''.&mt('for section [_1]',"$section").'';
$level -= 3;
$result .= "&"') . "' />\n";
@@ -3191,8 +3191,7 @@ sub render {
# Chop off everything after the last colon (section)
$username = substr($username, 0, rindex($username, ':'));
my $name = $classlist->{$username}->[6];
- $result .= &mt('for [_1]',$name);
-## $result .= "".&mt('for [_1]',"$name")."";
+ $result .= ''.&mt('for [_1]',"$name").'';
$level -= 6;
my ($uname, $udom) = split /:/, $vars->{USER_NAME};
$result .= "{ACTION_TYPE} ne 'weight') {
- $result .= "".&mt('to')." " . ctime($vars->{PARM_DATE}) . " (" .
- Apache::lonnavmaps::timeToHumanString($vars->{PARM_DATE})
- . ")\n";
+ $result .= ''.&mt('to [_1] ( [_2] )',"ctime($vars->{PARM_DATE})",Apache::lonnavmaps::timeToHumanString($vars->{PARM_DATE})).'\n';
}
# print pres_marker