Recommitting string fix.
[squirrelmail.git] / plugins / newmail / newmail.php
index 465df15e5b21bc34f5263d32a3f745ddf9052b9d..14906e3f9542237ca5162a7061611594f0f7d7c5 100644 (file)
  * @subpackage newmail
  */
 
-/** @ignore */
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
+require('../../include/init.php');
 
 sqGetGlobalVar('numnew', $numnew, SQ_GET);
 $numnew = (int)$numnew;
@@ -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".