--- loncom/homework/grades.pm 2007/08/18 00:57:25 1.429
+++ loncom/homework/grades.pm 2007/08/21 18:48:18 1.431
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.429 2007/08/18 00:57:25 banghart Exp $
+# $Id: grades.pm,v 1.431 2007/08/21 18:48:18 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2971,14 +2971,15 @@ sub viewgrades {
''."\n";
my $sectionClass;
+ my $section_display = join (", ",&Apache::loncommon::get_env_multiple('form.section'));
if ($env{'form.section'} eq 'all') {
$sectionClass='Class ';
} elsif ($env{'form.section'} eq 'none') {
- $sectionClass='Students in no Section ';
+ $sectionClass=&mt('Students in no Section').'';
} else {
- $sectionClass='Students in Section '.$env{'form.section'}.'';
+ $sectionClass=&mt('Students in Section(s) [_1]',$section_display).'';
}
- $result.='
Assign Common Grade To '.$sectionClass;
+ $result.=''.&mt('Assign Common Grade To [_1]',$sectionClass);
$result.= '
'."\n".
'';
#radio buttons/text box for assigning points for a section or class.
@@ -7544,6 +7545,10 @@ sub handler {
}
} else {
&init_perm();
+# &Apache::lonnet::logthis("command is $command");
+# foreach my $key (keys %perm) {
+# &Apache::lonnet::logthis("a key is $key");
+# }
if ($command eq 'submission' && $perm{'vgr'}) {
($env{'form.student'} eq '' ? &listStudents($request) : &submission($request,0,0));
} elsif ($command eq 'pickStudentPage' && $perm{'vgr'}) {
|
|