--- loncom/publisher/lonpublisher.pm 2003/12/27 16:58:36 1.155 +++ loncom/publisher/lonpublisher.pm 2003/12/29 19:13:23 1.157 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.155 2003/12/27 16:58:36 www Exp $ +# $Id: lonpublisher.pm,v 1.157 2003/12/29 19:13:23 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -126,6 +126,7 @@ use Apache::loncommon(); use Apache::lonmysql; use Apache::lonlocal; use Apache::loncfile; +use Apache::lonmeta; use vars qw(%metadatafields %metadatakeys); my %addid; @@ -316,8 +317,7 @@ sub textfield { $value=~s/\s+$//gs; $value=~s/\s+/ /gs; $title=&mt($title); - my $uctitle=uc($title); - return "\n

$uctitle:". + return "\n

$title:". "


". ''; } @@ -330,9 +330,8 @@ sub hiddenfield { sub selectbox { my ($title,$name,$value,$functionref,@idlist)=@_; $title=&mt($title); - my $uctitle=uc($title); $value=(split(/\s*,\s*/,$value))[-1]; - my $selout="\n

$uctitle:". + my $selout="\n

$title:". '


'; @@ -1176,11 +1171,11 @@ END $scrout.= "\n

". - uc(&mt('Lowest Grade Level:')). + &mt('Lowest Grade Level').':'. "


". &Apache::loncommon::select_level_form($metadatafields{'lowestgradelevel'},'lowestgradelevel'). "\n

". - uc(&mt('Highest Grade Level:')). + &mt('Highest Grade Level').':'. "


". &Apache::loncommon::select_level_form($metadatafields{'highestgradelevel'},'highestgradelevel'). &textfield('Standards','standards',$metadatafields{'standards'}); @@ -1652,8 +1647,8 @@ sub publishdirectory { my $resdir= $Apache::lonnet::perlvar{'lonDocRoot'}.'/res/'.$cudom.'/'.$cuname.'/'. $thisdisfn; - $r->print('

Directory '.$thisdisfn.'

'. - 'Target: '.$resdir.'
'); + $r->print('

'.&mt('Directory').' '.$thisdisfn.'

'. + &mt('Target').': '.$resdir.'
'); my $dirptr=16384; # Mask indicating a directory in stat.cmode. @@ -1691,7 +1686,7 @@ sub publishdirectory { if ($publishthis) { &batchpublish($r,$fn.'/'.$filename,$resdir.'/'.$filename); } else { - $r->print('
Skipping '.$filename.'
'); + $r->print('
'.&mt('Skipping').' '.$filename.'
'); } $r->rflush(); }