--- loncom/homework/inputtags.pm 2006/12/14 04:31:32 1.211 +++ loncom/homework/inputtags.pm 2006/12/22 18:30:07 1.212 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.211 2006/12/14 04:31:32 albertel Exp $ +# $Id: inputtags.pm,v 1.212 2006/12/22 18:30:07 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -701,10 +701,8 @@ sub decideoutput { $button=1; } elsif ($award eq 'SIG_FAIL') { my ($used,$min,$max)=split(':',$awardmsg); - my $word; - if ($used < $min) { $word=&mt('more'); } - if ($used > $max) { $word=&mt('fewer'); } - $message = &mt("Submission not graded. Use [_2] digits.",$used,$word); + my $word = ($used < $min) ? 'more' : 'fewer'; + $message = &mt("Submission not graded. Use $word digits.",$used); $bgcolor=$possiblecolors{'not_charged_try'}; $button=1; } elsif ($award eq 'UNIT_INVALID_INSTRUCTOR') {