[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Fri, 30 May 2008 19:31:20 -0000


bisitz		Fri May 30 15:31:20 2008 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - Localization: Added missing &mt() calls to "server is temporarily not available" screen
  - Added headline to "server is temporarily not available" screen
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.102 loncom/auth/lonlogin.pm:1.103
--- loncom/auth/lonlogin.pm:1.102	Fri Mar  7 21:53:25 2008
+++ loncom/auth/lonlogin.pm	Fri May 30 15:31:20 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.102 2008/03/08 02:53:25 raeburn Exp $
+# $Id: lonlogin.pm,v 1.103 2008/05/30 19:31:20 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -83,7 +83,7 @@
 	    &Apache::loncommon::end_page();
 	$r->print(
                   $start_page
-                 .'<h1>'.&mt('You are already logged in').'</h1>'
+                 .'<h1>'.&mt('You are already logged in!').'</h1>'
                  .'<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].',
                   '<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').'</p>'
                  .'<p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>'
@@ -221,16 +221,20 @@
                 $hostname.'</a>';
 	    $last=$hostname;
         }
-	$r->print(<<ENDTROUBLE);
-<html>
-<head><title>The LearningOnline Network with CAPA</title></head>
-<body bgcolor="#FFFFFF">
-<img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" />
-<h3>This LON-CAPA server is temporarily not available for login</h3>
-<p>Please attempt to login to one of the following servers:</p>$spares
-</body>
-</html>
-ENDTROUBLE
+	$r->print(
+           '<html>'
+          .'<head><title>'
+          .&mt('The LearningOnline Network with CAPA')
+          .'</title></head>'
+          .'<body bgcolor="#FFFFFF">'
+          .'<h1>'.&mt('The LearningOnline Network with CAPA').'</h1>'
+          .'<img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" />'
+          .'<h3>'.&mt('This LON-CAPA server is temporarily not available for login.').'</h3>'
+          .'<p>'.&mt('Please attempt to login to one of the following servers:').'</p>'
+          .$spares
+          .'</body>'
+          .'</html>'
+        );
         return OK;
     }