]> git.pld-linux.org Git - packages/squirrelmail.git/commitdiff
- Fixed language prefs recognition
authoradgor <adgor@pld-linux.org>
Fri, 20 Sep 2002 12:34:22 +0000 (12:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squirrelmail-username.patch -> 1.2

squirrelmail-username.patch

index 4cd9d5165f2b4d51219752837dbb5f564c492356..9032e7c7a8ae10cec8fd0e82ed41094cf6c296ce 100644 (file)
@@ -1,6 +1,6 @@
 --- squirrelmail-1.2.8/plugins/username/setup.php.orig Wed May  2 20:01:39 2001
-+++ squirrelmail-1.2.8/plugins/username/setup.php      Thu Sep 19 18:59:58 2002
-@@ -41,20 +41,22 @@
++++ squirrelmail-1.2.8/plugins/username/setup.php      Fri Sep 20 14:21:37 2002
+@@ -41,20 +41,27 @@
           return;
         
        ?>
 +
        if ($show_username == 1)
 -          echo $username;
-+         echo $username;
-       if ($show_username == 2)
+-      if ($show_username == 2)
 -          echo 'Logged in as: ' . $username;
 -       
 -?></tt>
 -</td></tr></table>
++         echo $username;
++      if ($show_username == 2) {
++         $msgpl = 'Zalogowany jako: ' .  $username;
++       $msgother = 'Logged in as: ' .  $username;
 +       if (getPref($data_dir, $username, 'language') == pl_PL)
-+          echo 'Zalogowany jako: ' .  $username;
++          echo $msgpl;
++       else if ($squirrelmail_default_language = 'pl_PL' && getPref($data_dir, $username, 'language') == '')
++          echo $msgpl;
 +       else
-+          echo 'Logged in as: ' .  $username;
++          echo $msgother;
++       }   
 +
 +?></h3></tt>
  </td></tr></table>
@@ -33,7 +39,7 @@
     }
  
     function username_show_options() {
-@@ -105,10 +107,10 @@
+@@ -105,10 +112,10 @@
     }
  
     function username_save_options() {
This page took 0.033887 seconds and 4 git commands to generate.