[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /homework grades.pm
raeburn
raeburn@source.lon-capa.org
Thu, 18 Dec 2008 13:19:17 -0000
raeburn Thu Dec 18 13:19:17 2008 EDT
Modified files: (Branch: version_2_8_X)
/loncom/homework grades.pm
Log:
- Backport 1.536.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.528.2.1 loncom/homework/grades.pm:1.528.2.2
--- loncom/homework/grades.pm:1.528.2.1 Wed Dec 10 21:30:38 2008
+++ loncom/homework/grades.pm Thu Dec 18 13:19:17 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.528.2.1 2008/12/10 21:30:38 raeburn Exp $
+# $Id: grades.pm,v 1.528.2.2 2008/12/18 13:19:17 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2796,8 +2796,10 @@
$newflg.'_'.$part_resp.'_returndoc'.$file_counter,
$save_file_name);
if ($result !~ m|^/uploaded/|) {
- $request->print('<span class="LC_error">An error occurred ('.$result.
- ') while trying to upload '.$newflg.'_'.$part_resp.'_returndoc'.$file_counter.'</span><br />');
+ $request->print('<br /><span class="LC_error">'.
+ &mt('An error occurred ([_1]) while trying to upload [_2].',
+ $result,$newflg.'_'.$part_resp.'_returndoc'.$file_counter).
+ '</span>');
} else {
# mark the file as read only
my @files = ($save_file_name);