--- loncom/xml/lonxml.pm 2008/03/12 02:46:03 1.474
+++ loncom/xml/lonxml.pm 2008/04/28 14:38:45 1.476
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.474 2008/03/12 02:46:03 raeburn Exp $
+# $Id: lonxml.pm,v 1.476 2008/04/28 14:38:45 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1559,7 +1559,7 @@ FULLPAGE
my $form_events = &Apache::edit::form_change_detection();
my $htmlerror=&verify_html($filecontents);
if ($htmlerror) {
- $htmlerror=''.$htmlerror.'
';
+ $htmlerror=''.$htmlerror.'';
}
my $editfooter=(<top.document.title = '$title - LON-CAPA Construction Space';";
+ $result = "";
}
return $result;
}
@@ -1815,7 +1816,7 @@ sub error {
# If printing in construction space, put the error inside
push(@Apache::lonxml::error_messages,
$Apache::lonxml::warnings_error_header.
- "ERROR:".join("
\n",@errors)."
\n");
+ "".&mt('ERROR:')."".join("
\n",@errors)."
\n");
$Apache::lonxml::warnings_error_header='';
} else {
my $errormsg;
@@ -1825,7 +1826,9 @@ sub error {
$errormsg=&mt("An error occured while processing this resource. The author has been notified.");
}
my $host=$Apache::lonnet::perlvar{'lonHostID'};
- push(@errors, "The error occurred on host $host");
+ push(@errors,
+ &mt("The error occurred on host [_1]",
+ "$host"));
my $msg = join('
', @errors);