Changing SquirrelMail to "$org_name". Thank's to Michael Long.
[squirrelmail.git] / plugins / newmail / newmail.php
index af6d7f503323a2766a3a90566cb2e5cdf2b6bcab..f41c356e6d54dd333d41ae8888e29af8b646a613 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Displays all options relating to new mail sounds
  *
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright © 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -24,10 +24,11 @@ $numnew = (int)$numnew;
    displayHtmlHeader( _("New Mail"), '', FALSE );
 
    echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
-        '<center>'. "\n" .
+        '<div style="text-align: center;">'. "\n" .
         html_tag( 'table', "\n" .
             html_tag( 'tr', "\n" .
-                html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
+                // i18n: %s inserts the organisation name (typically SquirrelMail)
+                html_tag( 'td', '<b>' . sprintf(_("%s notice:"), $org_name) . '</b>', 'center', $color[0] )
             ) .
             html_tag( 'tr', "\n" .
                 html_tag( 'td',
@@ -41,8 +42,8 @@ $numnew = (int)$numnew;
                           'center' )
                       ) ,
                   '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
-   '</center>' .
-   "<script language=javascript>\n".
+   '</div>' .
+   "<script type=\"text/javascript\">\n".
    "<!--\n".
    "document.nm.bt.focus();\n".
    "-->\n".