--- loncom/homework/grades.pm 2005/11/22 19:31:43 1.297
+++ loncom/homework/grades.pm 2005/11/22 20:21:02 1.298
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.297 2005/11/22 19:31:43 www Exp $
+# $Id: grades.pm,v 1.298 2005/11/22 20:21:02 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1844,11 +1844,12 @@ KEYWORDS
''."\n";
$result.=' '.
- 'Compose Message to student'.(scalar(@col_fullnames) >= 1 ? 's' : '').' '.
+ &mt('Compose message to student').(scalar(@col_fullnames) >= 1 ? 's' : '').' ('.
+ &mt('incl. grades').' )'.
''."\n".
- '
(Message will be sent when you click on Save & Next below.)'."\n"
- if ($env{'form.handgrade'} eq 'yes');
+ '
('.
+ &mt('Message will be sent when you click on Save & Next below.').")\n";
$request->print($result);
}
if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {
@@ -1974,19 +1975,21 @@ sub processHandGrade {
my $includemsg = $env{'form.includemsg'.$ctr};
my ($subject,$message,$msgstatus) = ('','','');
if ($includemsg =~ /savemsg|newmsg\Q$ctr\E/) {
- $subject = $env{'form.msgsub'} if ($includemsg =~ /^msgsub/);
+ $subject = $env{'form.msgsub'} if ($includemsg =~ /msgsub/);
unless ($subject=~/\w/) { $subject=&mt('Grading Feedback'); }
my (@msgnum) = split(/,/,$includemsg);
foreach (@msgnum) {
$message.=$env{'form.'.$_} if ($_ =~ /savemsg|newmsg/ && $_ ne '');
}
$message =&Apache::lonfeedback::clear_out_html($message);
- $message.="\n\nPoint".($pts > 1 ? 's':'').' awarded = '.$pts.' out of '.$wgt;
- $message.=" for 1 ? 's':'').' awarded = '.$pts.' out of '.$wgt;
+ $message.=" for $env{'form.probTitle'}";
+ }
$msgstatus = &Apache::lonmsg::user_normal_msg ($uname,$udom,
- $env{'form.msgsub'}.' ['.
+ $subject.' ['.
&Apache::lonnet::declutter($url).']',$message);
$request->print('
'.&mt('Sending message to [_1]@[_2]',$uname,$udom).': '.
$msgstatus);