[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface/statistics lonstudentassessment.pm
raeburn
raeburn at source.lon-capa.org
Sun Dec 16 12:11:23 EST 2012
raeburn Sun Dec 16 17:11:23 2012 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface/statistics lonstudentassessment.pm
Log:
- For 2.11
- Backport 1.170, 1.171
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.169.2.1 loncom/interface/statistics/lonstudentassessment.pm:1.169.2.2
--- loncom/interface/statistics/lonstudentassessment.pm:1.169.2.1 Sat May 12 03:42:01 2012
+++ loncom/interface/statistics/lonstudentassessment.pm Sun Dec 16 17:11:23 2012
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.169.2.1 2012/05/12 03:42:01 raeburn Exp $
+# $Id: lonstudentassessment.pm,v 1.169.2.2 2012/12/16 17:11:23 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1118,7 +1118,7 @@
}
my $too_many_cols_error_message =
'<h2>'.&mt('Unable to Complete Request').'</h2>'.$/.
- '<p>'.&mt('LON-CAPA is unable to produce your Excel spreadsheet because your selections will result in more than 255 columns. Excel allows only 255 columns in a spreadsheet.').'</p>'.$/.
+ '<p class="LC_warning">'.&mt('LON-CAPA is unable to produce your Excel spreadsheet because your selections will result in more than 255 columns. Excel allows only 255 columns in a spreadsheet.').'</p>'.$/.
'<p>'.&mt('You may consider reducing the number of <b>Sequences or Folders</b> you have selected.').'</p>'.$/.
'<p>'.&mt('LON-CAPA can produce <b>CSV</b> files of this data or Excel files of the <b>Scores Summary</b> data.').'</p>'.$/;
if ($chosen_output->{'base'} eq 'tries' && $total_columns > 255) {
@@ -1652,13 +1652,14 @@
# Deal with unimplemented requests
$request_aborted = undef;
if ($chosen_output->{'base'} =~ /final table/) {
- $r->print(<<END);
-<h2>Unable to Complete Request</h2>
-<p>
-The <b>Summary Table (Scores)</b> option is not available for non-HTML output.
-</p>
-END
- $request_aborted = 1;
+ $r->print(
+ '<h2>'.&mt('Unable to Complete Request').'</h2>'
+ .'<p class="LC_warning">'
+ .&mt('The [_1]Summary Table (Scores)[_2] option'
+ .' is not available for non-HTML output.','<b>','</b>')
+ .'</p>'
+ );
+ $request_aborted = 1;
}
return if ($request_aborted);
#
More information about the LON-CAPA-cvs
mailing list