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

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Thu, 24 Jan 2008 14:30:29 -0000


bisitz		Thu Jan 24 09:30:29 2008 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - Localization: Added missing &mt(...)
  - Optimized screen layout: added line break before 'remember option' in Accessibility Options
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.98 loncom/auth/lonlogin.pm:1.99
--- loncom/auth/lonlogin.pm:1.98	Wed Jan 16 15:42:44 2008
+++ loncom/auth/lonlogin.pm	Thu Jan 24 09:30:28 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.98 2008/01/16 20:42:44 raeburn Exp $
+# $Id: lonlogin.pm,v 1.99 2008/01/24 14:30:28 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -349,7 +349,14 @@
 		  'serv' => 'Server',
                   'servadm' => 'Server Administration',
                   'helpdesk' => 'Contact Helpdesk',
-                  'forgotpw' => 'Forgot password?');
+                  'forgotpw' => 'Forgot password?',
+                  'options_headline' => 'Select Accessibility Options',
+                  'sprs_img' => 'Suppress rendering of images',
+                  'sprs_applet' => 'Suppress Java applets',
+                  'sprs_embed' => 'Suppress rendering of embedded multimedia',
+                  'sprs_font' => 'Increase font size',
+                  'sprs_blackwhite' => 'Switch to black and white mode',
+                  'remember' => 'Remember these settings for next login');
 # -------------------------------------------------- Change password field name
     my $forgotpw = &forgotpwdisplay(%lt);
     my $loginhelp = &loginhelpdisplay(%lt);
@@ -454,18 +461,21 @@
    <td align="center" valign="middle" bgcolor="$sidebg">
 ENDTOP
 } else {
-    $r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1><h2>Text-based Interface Login</h2>'.$announcements);
+    $r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1>'
+             .'<h2>'.&mt('Text-based Interface Login').'</h2>'
+             .$announcements);
 }
     $r->print('<form name="client" onsubmit="return(send())">');
     unless ($fullgraph) {
         $r->print(<<ENDACCESSOPTIONS);
-<h3>Select Accessibility Options</h3>
-<label><input type="checkbox" name="imagesuppress" /> Suppress rendering of images</label><br />
-<label><input type="checkbox" name="appletsuppress" /> Suppress Java applets</label><br />
-<label><input type="checkbox" name="embedsuppress" /> Suppress rendering of embedded multimedia</label><br />
-<label><input type="checkbox" name="fontenhance" /> Increase font size</label><br />
-<label><input type="checkbox" name="blackwhite" /> Switch to black and white mode</label><br />
-<input type="checkbox" name="remember" /> Remember these settings for next login<hr />
+<h3>$lt{'options_headline'}</h3>
+<label><input type="checkbox" name="imagesuppress" /> $lt{'sprs_img'}</label><br />
+<label><input type="checkbox" name="appletsuppress" /> $lt{'sprs_applet'}</label><br />
+<label><input type="checkbox" name="embedsuppress" /> $lt{'sprs_embed'}</label><br />
+<label><input type="checkbox" name="fontenhance" /> $lt{'sprs_font'}</label><br />
+<label><input type="checkbox" name="blackwhite" /> $lt{'sprs_blackwhite'}</label><br />
+<br />
+<input type="checkbox" name="remember" /> $lt{'remember'}<hr />
 ENDACCESSOPTIONS
 } else {
     $r->print(<<ENDNOOPT);