added phpdoc blocks.
[squirrelmail.git] / plugins / fortune / setup.php
index d3073e1a4dd16bf5a2e4ba52e9e281b90fc75666..7e67fc61287d12c0171bc423f45f8ad95261489d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * plugins/fortune/setup.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Original code contributed by paulm@spider.org
  * fortune above the message listing.
  *
  * $Id$
+ * @package plugins
+ * @subpackage fortune
  */
 
+/**
+*
+*/
 function squirrelmail_plugin_init_fortune() {
   global $squirrelmail_plugin_hooks;
   
@@ -35,9 +40,9 @@ function fortune() {
     echo "<center><table cellpadding=0 cellspacing=0 border=0 bgcolor=$color[10]><tr><td><table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor=\"$color[5]\"><tr><td align=center>";
     echo '<TABLE><TR><TD>';
     if (!$exist) {
-        echo "$fortune_location not found.";
+        echo "$fortune_location" . _(" not found.");
     } else {
-        echo "<CENTER><FONT=3><EM>Today's Fortune</EM><BR></FONT></CENTER><pre>";
+        echo "<CENTER><FONT=3><EM>" . _("Today's Fortune") . "</EM><BR></FONT></CENTER><pre>";
         system($fortune_location);
     } 
   
@@ -53,11 +58,11 @@ function fortune_load() {
 function fortune_options() {
   global $fortune_visible;
 
-  echo "<tr><td align=right nowrap>Fortunes:</td>\n";
+  echo "<tr>" . html_tag('td',_("Fortunes:"),'right','','nowrap') . "\n";
   echo '<td><input name="fortune_fortune_visible" type=CHECKBOX';
   if ($fortune_visible)
     echo ' CHECKED';
-  echo "> Show fortunes at top of mailbox</td></tr>\n";
+  echo "> " . _("Show fortunes at top of mailbox") . "</td></tr>\n";
 }
 
 function fortune_save() {