This fixes the plugin translation problem. Please check.
[squirrelmail.git] / functions / strings.php
index a21969d89d60ee9f0a4b41c2f78bde5d26f79a3f..ac71e9da1905e6f4aba3d4eb52033a0cb43a3f75 100644 (file)
 
    function translateText(&$body, $wrap_at, $charset) {
       global $where, $what; // from searching
+      global $color; // color theme
 
-      include '../functions/url_parser.php';
+      require_once('../functions/url_parser.php');
       
       $body_ary = explode("\n", $body);
       $PriorQuotes = 0;
              }
          }
          
-         if ($Quotes > 1)
-            $line = '<FONT COLOR="FF0000">'.$line.'</FONT>';
-         elseif ($Quotes)
-            $line = '<FONT COLOR="800000">'.$line.'</FONT>';
+         if ($Quotes > 1) {
+           if (! isset($color[14]))
+              $color[14] = '#FF0000';
+            $line = '<FONT COLOR="' . $color[14] . '">' . $line . '</FONT>';
+        } elseif ($Quotes) {
+           if (! isset($color[13]))
+              $color[13] = '#800000';
+            $line = '<FONT COLOR="' . $color[13] . '">' . $line . '</FONT>';
+        }
 
          $body_ary[$i] = $line;
       }
 
    /* SquirrelMail version number -- DO NOT CHANGE */
    global $version;
-   $version = '1.1.2 [cvs]';
+   $version = '1.2.0 [cvs]';
 
 
    function find_mailbox_name ($mailbox) {
        return ereg_replace('(["\\])', '\\\\1', $str);
    }
 
-?>
+?>
\ No newline at end of file