--- loncom/auth/lonlogin.pm 2003/09/11 20:54:11 1.49 +++ loncom/auth/lonlogin.pm 2003/09/21 20:06:36 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.49 2003/09/11 20:54:11 www Exp $ +# $Id: lonlogin.pm,v 1.54 2003/09/21 20:06:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -41,11 +41,13 @@ use Apache::File (); use Apache::lonnet(); use Apache::loncommon(); use Apache::lonauth(); +use Apache::lonlocal; sub handler { my $r = shift; - $r->content_type('text/html'); &Apache::loncommon::no_cache($r); + &Apache::lonlocal::get_language_handle($r); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK if $r->header_only; @@ -60,6 +62,7 @@ sub handler { ($ENV{'QUERY_STRING'}.'&'.$ENV{'request.querystring'}, ['interface','username','domain','firsturl','localpath','localres']); + # ----------------------------------------------------------- Process Interface $ENV{'form.interface'}=~s/\W//g; @@ -212,6 +215,24 @@ ENDHEADER my $logo=&Apache::loncommon::designparm('login.logo',$domain); my $img=&Apache::loncommon::designparm('login.img',$domain); +# ----------------------------------------------------------------------- Texts + +my %lt=&Apache::lonlocal::texthash( + 'un' => 'Username', + 'pw' => 'Password', + 'dom' => 'Domain', + 'perc' => 'percent', + 'load' => 'Load', + 'userload' => 'User Load', + 'about' => 'aboutlon.gif', + 'access' => 'accessbutton.gif', + 'auth' => 'userauthentication.gif', + 'log' => 'Log in', + 'help' => 'Help', + 'serv' => 'Server', + 'servadm' => 'Server Administration', + 'sysadm' => 'System Administration'); + # ---------------------------------------------------------- Serve rest of page $r->print(< - Accessibility Options + Accessibility Options
- About LON-CAPA + About LON-CAPA @@ -369,24 +390,24 @@ ENDNOOPT - + - + - + - + - +
User Authentication
User Authentication

   User Name:

   $lt{'un'}:

   Password:   $lt{'pw'}:
   Domain:   $lt{'dom'}:
   Help   $lt{'help'}
- +
@@ -414,7 +435,7 @@ ENDLOGIN
-    Domain:  +    $lt{'dom'}:   $domain @@ -422,7 +443,7 @@ ENDLOGIN
-    Server:  +    $lt{'serv'}:   $lonhost ($role) @@ -430,26 +451,26 @@ ENDLOGIN
-    Load:  +    $lt{'load'}:  -  $loadpercent percent +  $loadpercent $lt{'perc'}
-    User Load:  +    $lt{'userload'}:  -  $userloadpercent percent +  $userloadpercent $lt{'perc'}

-    System Administration:
+    $lt{'sysadm'}:
      $sysadm
-    Server Administration:
+    $lt{'servadm'}:
      $servadm
 
   $version