[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Fri, 10 Oct 2008 10:54:08 -0000


bisitz		Fri Oct 10 06:54:08 2008 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - Eliminated unnecessary blank at end of parameter display names
  - Added missing &mt() call to display of parameter display name
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.410 loncom/interface/lonparmset.pm:1.411
--- loncom/interface/lonparmset.pm:1.410	Fri Oct 10 06:19:08 2008
+++ loncom/interface/lonparmset.pm	Fri Oct 10 06:54:03 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.410 2008/10/10 10:19:08 bisitz Exp $
+# $Id: lonparmset.pm,v 1.411 2008/10/10 10:54:03 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -973,7 +973,7 @@
 	    if (!exists($$allparms{$name}) || $$allparms{$name} =~ m/^\s*$/ ) {
 		my $display= &Apache::lonnet::metadata($srcf,$key.'.display');
 		my $parmdis = $display;
-		$parmdis =~ s/\[Part.*$//g;
+		$parmdis =~ s/ \[Part.*$//g;
 		$$allparms{$name}=$parmdis;
 		if (ref($defkeytype)) {
 		    $$defkeytype{$name}=
@@ -1107,8 +1107,8 @@
 	if ($$pscat[0] eq "all" || grep $_ eq $tempkey, @{$pscat}) {
 	    $r->print(' checked');
 	}
-	$r->print('>'.($$allparms{$tempkey}=~/\S/ ? $$allparms{$tempkey}
-		                                  : $tempkey)
+	$r->print('>'.($$allparms{$tempkey}=~/\S/ ? &mt($$allparms{$tempkey})
+		                                  : &mt($tempkey))
 		  .'</label></td>');
  	$cnt++;
         if ($cnt==3) {