UI change and strings update
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Nov 2001 23:57:55 +0000 (23:57 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Nov 2001 23:57:55 +0000 (23:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1684 7612ce4b-ef26-0410-bec9-ea0150e637f0

po/squirrelmail.po
src/left_main.php

index 51e5114..daf5d39 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-11-03 00:41+0100\n"
+"POT-Creation-Date: 2001-11-03 00:55+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -316,7 +316,7 @@ msgstr ""
 msgid "Renamed successfully!"
 msgstr ""
 
-#: squirrelmail/src/folders.php:52 squirrelmail/src/left_main.php:190
+#: squirrelmail/src/folders.php:52 squirrelmail/src/left_main.php:191
 msgid "refresh folder list"
 msgstr ""
 
@@ -430,6 +430,10 @@ msgstr ""
 msgid "purge"
 msgstr ""
 
+#: squirrelmail/src/left_main.php:188
+msgid "Last Refresh"
+msgstr ""
+
 #: squirrelmail/src/login.php:88 squirrelmail/src/login.php:137
 msgid "Login"
 msgstr ""
index 6921de9..c73b998 100644 (file)
 
     // open a connection on the imap port (143)
     $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output
-   
+
     displayHtmlHeader();
 
     /* If requested and not yet complete, attempt to autocreate folders. */
     if ($auto_create_special && ! isset($auto_create_done)) {
-          /* Autocreate the sent folder, if needed. */
-         if (isset ($sent_folder) && $sent_folder != 'none') {
-                if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
-                       sqimap_mailbox_create ($imapConnection, $sent_folder, '');
-                } else if (! sqimap_mailbox_is_subscribed($imapConnection, $sent_folder)) {
-                   sqimap_subscribe($imapConnection, $sent_folder);
-                }
-         }
-
-          /* Autocreate the trash folder, if needed. */
-         if (isset ($trash_folder) && $trash_folder != 'none') {
-                if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)) {
-                       sqimap_mailbox_create ($imapConnection, $trash_folder, '');
-                } else if (! sqimap_mailbox_is_subscribed($imapConnection, $trash_folder)) {
-                   sqimap_subscribe($imapConnection, $trash_folder);
-                }
-          }
+        /* Autocreate the sent folder, if needed. */
+        if (isset ($sent_folder) && $sent_folder != 'none') {
+            if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
+                sqimap_mailbox_create ($imapConnection, $sent_folder, '');
+            } else if (! sqimap_mailbox_is_subscribed($imapConnection, $sent_folder)) {
+                sqimap_subscribe($imapConnection, $sent_folder);
+            }
+        }
 
-          /* Autocreate the drafts folder, if needed. */
-          if (isset ($draft_folder) && $draft_folder != 'none') {
-                 if (!sqimap_mailbox_exists ($imapConnection, $draft_folder)) {
-                        sqimap_mailbox_create ($imapConnection, $draft_folder, '');
-                 } else if (! sqimap_mailbox_is_subscribed($imapConnection, $draft_folder)) {
-                    sqimap_subscribe($imapConnection, $draft_folder);
-                 }
-          }
+            /* Autocreate the trash folder, if needed. */
+        if (isset ($trash_folder) && $trash_folder != 'none') {
+            if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)) {
+                sqimap_mailbox_create ($imapConnection, $trash_folder, '');
+            } else if (! sqimap_mailbox_is_subscribed($imapConnection, $trash_folder)) {
+                sqimap_subscribe($imapConnection, $trash_folder);
+            }
+        }
+
+        /* Autocreate the drafts folder, if needed. */
+        if (isset ($draft_folder) && $draft_folder != 'none') {
+            if (!sqimap_mailbox_exists ($imapConnection, $draft_folder)) {
+                sqimap_mailbox_create ($imapConnection, $draft_folder, '');
+            } else if (! sqimap_mailbox_is_subscribed($imapConnection, $draft_folder)) {
+                sqimap_subscribe($imapConnection, $draft_folder);
+            }
+        }
 
           /* Let the world know that autocreation is complete! Hurrah! */
-         $auto_create_done = true;
-         session_register('auto_create_done');
-   }
+        $auto_create_done = true;
+        session_register('auto_create_done');
+    }
 
    function formatMailboxName($imapConnection, $box_array, $delimeter) {
       global $folder_prefix, $trash_folder, $sent_folder;
@@ -73,7 +73,7 @@
       if (ereg("^( *)([^ ]*)$", $mailbox, $regs)) {
           $mailbox = $regs[2];
       }
-      
+
       $unseen = 0;
 
       if (($unseen_notify == 2 && $real_box == 'INBOX') ||
       $clk = date($hr, time()); 
       break;
     default:   
-      $clk = date("D, ".$hr, time()); 
+      $clk = date("D, ".$hr, time());
     }
 
-    echo "<center><small>$clk</small></center>";
+    echo '<center><small>' . _("Last Refresh") . ":<br>$clk";
+    echo '</small></center>';
     echo '<SMALL>(<A HREF="../src/left_main.php" TARGET="left">';
     echo _("refresh folder list");
     echo '</A>)</SMALL></CENTER><BR>';