--- loncom/interface/lonparmset.pm 2009/02/13 17:46:00 1.429 +++ loncom/interface/lonparmset.pm 2009/02/15 15:14:34 1.431 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set parameters for assessments # -# $Id: lonparmset.pm,v 1.429 2009/02/13 17:46:00 raeburn Exp $ +# $Id: lonparmset.pm,v 1.431 2009/02/15 15:14:34 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1317,14 +1317,15 @@ ENDSCRIPT if ($$pscat[0] eq "all" || grep $_ eq $tempkey, @{$pscat}) { $r->print(' checked="checked"'); } - my $displaykey; - if ($$allparms{$tempkey}=~/\S/) { - $displaykey = $$allparms{$tempkey}; - } else { - $displaykey = $tempkey; + my $displaykey = &standard_parameter_names($tempkey); + if ($displaykey eq '') { + if ($$allparms{$tempkey}=~/\S/) { + $displaykey = $$allparms{$tempkey}; + } else { + $displaykey = $tempkey; + } } - $displaykey =~ s/(\[|\])/~$1/g; - $r->print(' />'.&mt($displaykey).''); + $r->print(' />'.$displaykey.''); $cnt++; if ($cnt==3) { $r->print("\n"); @@ -3460,7 +3461,7 @@ ENDOVER my $foundkeys=&listdata($r,$resourcedata,$resourcedata,$sortorder); $r->print(&tableend().'

'. - ($foundkeys?'':&mt('There are no parameters.')).'

'. + ($foundkeys?'':&mt('There are no parameters.')).'

'. &Apache::loncommon::end_page()); } @@ -4334,7 +4335,7 @@ ENDYESNO } $r->print(&Apache::loncommon::end_data_table(). "\n".''."\n". + &mt('Save').'" />'."\n". &Apache::loncommon::end_page()); return; }