--- loncom/homework/grades.pm 2014/02/11 14:29:10 1.720 +++ loncom/homework/grades.pm 2014/02/13 18:13:22 1.721 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.720 2014/02/11 14:29:10 kruse Exp $ +# $Id: grades.pm,v 1.721 2014/02/13 18:13:22 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -410,7 +410,8 @@ sub cleanRecord { return '

'.&keywords_highlight(&HTML::Entities::encode($answer, '"<>&')).'
'; } elsif ( $response eq 'organic') { - my $result='Smile representation: "'.HTML::Entities::encode($answer, '"<>&').'"'; + my $result=&mt('Smile representation: [_1]', + '"'.&HTML::Entities::encode($answer, '"<>&').'"'); my $jme=$record->{$version."resource.$partid.$respid.molecule"}; $result.=&Apache::chemresponse::jme_img($jme,$answer,400); return $result; @@ -2774,7 +2775,10 @@ sub processHandGrade { next; } if ($errorflag eq 'not_allowed') { - $request->print("Not allowed to modify grades for $uname:$udom"); + $request->print( + '' + .&mt('Not allowed to modify grades for [_1]',"$uname:$udom") + .''); $ctr++; next; } @@ -6614,7 +6618,7 @@ sub scantron_warning_screen { $scantron_config{'CODEstart'} && $scantron_config{'CODElength'}) { $CODElist=$env{'form.scantron_CODElist'}; - if ($env{'form.scantron_CODElist'} eq '') { $CODElist='None'; } + if ($env{'form.scantron_CODElist'} eq '') { $CODElist=''.&mt('None').''; } $CODElist= ''.&mt('List of CODES to validate against:').''. $env{'form.scantron_CODElist'}.''; @@ -8247,7 +8251,7 @@ sub hand_bubble_option { return &mt('The sequence to be graded contains response types which are handgraded.').'

'. &mt('If you have already graded these by bubbling sheets to indicate points awarded, [_1]what point value is assigned to a filled last bubble in each row?','
'). ' '.&mt('or').' '. - '

'; + '

'; } return; } @@ -9081,14 +9085,14 @@ sub checkscantron_results { ''.&mt('Bubblesheet').''.$showscandata.''.$last.''.$pid.''."\n". ''."\n". ''."\n". -'Submissions'.$showrecord.''."\n"; +''.&mt('Submissions').''.$showrecord.''."\n"; $passed ++; } else { my $css_class = ($failed % 2)?'LC_odd_row':'LC_even_row'; $badstudents .= ''.&mt('Bubblesheet').''.$scandata{$pid}.''.$last.''.$pid.''."\n". ''."\n". ''."\n". -'Submissions'.$record{$pid}.''."\n". +''.&mt('Submissions').''.$record{$pid}.''."\n". ''."\n"; $failed ++; }