[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sun, 23 Mar 2008 19:48:50 -0000


raeburn		Sun Mar 23 15:48:50 2008 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - &mt() feedback about ssi_error during printing.
  - include link to helpdesk
  - some wording changes
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.521 loncom/interface/lonprintout.pm:1.522
--- loncom/interface/lonprintout.pm:1.521	Mon Mar 17 05:53:36 2008
+++ loncom/interface/lonprintout.pm	Sun Mar 23 15:48:49 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.521 2008/03/17 09:53:36 foxr Exp $
+# $Id: lonprintout.pm,v 1.522 2008/03/23 19:48:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2092,27 +2092,24 @@
     #
 
     if ($ssi_error) {
+
+        my $helpurl = &Apache::loncommon::top_nav_help('Helpdesk');
 	my $end_page = &Apache::loncommon::end_page();
-	$r->print(<<ERROR_END);
+	$r->print('
 <br />
-<h2>An unrecoverable error occured:</h2>
+<h2>'.&mt('An unrecoverable error occured:').'</h2>
 <p>
-  I was not able to render one of the print resources ($ssi_last_error_resource) 
-due to an unrecoverable error communicating with a server:
-<br />
-$ssi_last_error;
+  '.&mt('One of the resources ([_1]) you chose to print could not be rendered due to an unrecoverable error when communicating with a server:',$ssi_last_error_resource).' 
 <br />
+'.$ssi_last_error.'
 </p>
-<p>
-I recommend that you try printing again later as this may mean the server was just 
-temporarily unavailable, or is down for maintenance.  If this error persists, then
-please contact your LonCAPA support folks for assistance and diagnosis. 
-<br />
-<br />
-We apologize for the inconvenience.
-</p>
-$end_page
-ERROR_END
+<p>'.
+&mt('It is recommended that you try printing again later, as this error may mean the server was just temporarily unavailable, or is down for maintenance.').'<br />'.
+&mt('If the error persists, please contact the [_1] for assistance.',$helpurl).
+'</p><p>'.
+&mt('We apologize for the inconvenience.').
+'</p>'.
+$end_page);
     } else {
 
 #-- writing .tex file in prtspool