--- loncom/interface/portfolio.pm 2012/07/30 13:10:57 1.236 +++ loncom/interface/portfolio.pm 2012/12/17 06:29:02 1.239 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.236 2012/07/30 13:10:57 bisitz Exp $ +# $Id: portfolio.pm,v 1.239 2012/12/17 06:29:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -650,7 +650,7 @@ sub done { 'symb' => $env{'form.symb'}, 'mode' => $env{'form.mode'} ); - my $result = '

'.&make_anchor($url,\%anchor_fields,&mt($message)).'

'; + my $result = '

'.&make_anchor($url,\%anchor_fields,&mt($message)).'

'; return $result; } @@ -670,7 +670,7 @@ sub delete { $r->print('

'.&mt('Delete [_1]?',&display_file(undef,\@files)).'

'); &close_form($r,$url); } else { - $r->print("No file was checked to delete.
"); + $r->print('

'.&mt('No file was checked to delete.').'

'); $r->print(&done(undef,$url)); } } @@ -2119,7 +2119,10 @@ sub print_dependency_form { $r->print('

'.&mt("Reference Information").'

'); } if ($num) { - $r->print('

'.&mt("Completed upload of the file. This file contained references to other files. You must upload the referenced files or else the uploaded file may not work properly.").'

'. + $r->print('

'.&mt('Completed upload of the file.').' '. + &mt('This file contained references to other files.').' '. + &mt('You must upload the referenced files or else the uploaded file may not work properly.'). + '

'. '

'.&mt("Please select the locations from which the referenced files are to be uploaded.").'

'. $embedded. '

'.&mt('or').'

'.&done('Return to directory',$url)); @@ -2376,12 +2379,13 @@ sub get_port_path { sub missing_priv { my ($r,$url,$priv) = @_; - my $longtext = { + my %longtext = + &Apache::lonlocal::texthash( upload => 'upload files', delete => 'delete files', rename => 'rename files', setacl => 'set access controls for files', - }; + ); my $escpath = &HTML::Entities::encode($env{'form.currentpath'},'&<>"'); my $rtnlink = 'print(' '.&mt("in the group's group portfolio.")); $rtnlink .= &group_args() } else { - $r->print(&mt('in this portfolio.')); + $r->print(' '.&mt('in this portfolio.')); } $rtnlink .= '">'.&mt('Return to directory').''; $r->print('
'.$rtnlink); @@ -2617,7 +2621,7 @@ sub handler { } } if (($env{'form.storeupl'}) & (!$env{'form.uploaddoc.filename'})){ - $r->print(''); + $r->print(''); $r->print(&mt('No file was selected to upload.').' '); $r->print(&mt('To upload a file, click Browse... and select a file, then click Upload.')); $r->print('');