--- loncom/xml/lonxml.pm 2003/09/19 20:29:29 1.279 +++ loncom/xml/lonxml.pm 2003/09/21 21:40:06 1.280 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.279 2003/09/19 20:29:29 albertel Exp $ +# $Id: lonxml.pm,v 1.280 2003/09/21 21:40:06 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -105,6 +105,7 @@ use Apache::loncommon(); use Apache::lonfeedback(); use Apache::lonmsg(); use Apache::loncacc(); +use Apache::lonlocal; #================================================== Main subroutine: xmlparse #debugging control, to turn on debugging modify the correct handler @@ -792,7 +793,7 @@ sub decreasedepth { $Apache::lonxml::olddepth=$Apache::lonxml::depth+1; } if ( $Apache::lonxml::depth < -1) { - &Apache::lonxml::warning("Missing tags, unable to properly run file."); + &Apache::lonxml::warning(&mt("Missing tags, unable to properly run file.")); $Apache::lonxml::depth='-1'; } my $curdepth=join('_',@Apache::lonxml::depthcounter); @@ -1087,21 +1088,24 @@ sub inserteditinfo { } my $cleanbut = ''; if ($filetype eq 'html') { - $cleanbut=''; + $cleanbut=''; } my $titledisplay=&display_title(); + my %lt=&Apache::lonlocal::texthash('st' => 'Save this', + 'vi' => 'View', + 'ed' => 'Edit'); my $buttons=(< - + + BUTTONS my $editfooter=(<
$xml_help - + $buttons

$buttons @@ -1149,9 +1153,9 @@ sub handler { $Apache::lonxml::debug=$ENV{'user.debug'}; if ($ENV{'browser.mathml'}) { - $request->content_type('text/xml'); + &Apache::loncommon::content_type($request,'text/xml'); } else { - $request->content_type('text/html'); + &Apache::loncommon::content_type($request,'text/html'); } &Apache::loncommon::no_cache($request); $request->send_http_header;