--- loncom/interface/spreadsheet/Spreadsheet.pm 2008/03/12 02:45:27 1.78 +++ loncom/interface/spreadsheet/Spreadsheet.pm 2009/12/16 13:00:53 1.81 @@ -1,5 +1,5 @@ # -# $Id: Spreadsheet.pm,v 1.78 2008/03/12 02:45:27 raeburn Exp $ +# $Id: Spreadsheet.pm,v 1.81 2009/12/16 13:00:53 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1525,16 +1525,20 @@ sub outsheet_csv { my $csvdata = ''; my @Values; # - # Open the csv file + # Open the CSV file my $filename = '/prtspool/'. $env{'user.name'}.'_'.$env{'user.domain'}.'_'. time.'_'.rand(1000000000).'.csv'; my $file; unless ($file = Apache::File->new('>'.'/home/httpd'.$filename)) { $r->log_error("Couldn't open $filename for output $!"); - $r->print(&mt("Problems occured in writing the csv file. ". - "This error has been logged. ". - "Please alert your LON-CAPA administrator.")); + $r->print( + '

' + .&mt('Problems occurred in writing the CSV file.') + .' '.&mt('This error has been logged.') + .' '.&mt('Please alert your LON-CAPA administrator.') + .'

' + ); $r->print("
\n".$csvdata."
\n"); return 0; } @@ -1547,7 +1551,7 @@ sub outsheet_csv { # Output the body of the spreadsheet $self->csv_rows($connection,$file); # - # Close the csv file + # Close the CSV file close($file); $r->print('

'. ''.&mt('Your CSV spreadsheet.').''."\n");