Seriously? The variable is named as an array and initialized as a string? Well, I...
[squirrelmail.git] / plugins / translate / options.php
index 8bc0b6d4297b784b35dfab865a43a9969fcb2049..f20dd5c5dee9edbe41050398725ba4d98beca071 100644 (file)
@@ -1,33 +1,30 @@
 <?php
+
 /**
  * options.php
  *
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Pick your translator to translate the body of incoming mail messages
  *
+ * @copyright 1999-2017 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage translate
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../../');
+require('../../include/init.php');
 
-/** SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
 /** Plugin functions */
 include_once(SM_PATH . 'plugins/translate/functions.php');
 
-displayPageHeader($color, 'None');
+displayPageHeader($color);
 
 ?>
    <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
-      <center><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></center>
+      <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
    </td></tr></table>
 
    <p><?php echo _("Your server options are as follows:"); ?></p>
@@ -44,14 +41,14 @@ displayPageHeader($color, 'None');
         '<input type="hidden" name="optmode" value="submit" />' .
         '<input type="hidden" name="optpage" value="translate" />' .
         '<table border="0" cellpadding="0" cellspacing="2">'.
-            '<tr><td align="right" nowrap="nowrap">' .
+            '<tr><td align="right" style="white-space: nowrap;">' .
              _("Select your translator:") .
              '</td>'.
             '<td><select name="translate_translate_server">';
    translate_showoption();
    echo '</select>' .
        '</td></tr>' .
-       '<tr>'.html_tag('td',_("When reading:"),'right','','nowrap="nowrap"').
+       '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
        '<td><input type="checkbox" name="translate_translate_show_read"';
    if ($translate_show_read)
        echo ' checked="checked"';
@@ -68,7 +65,7 @@ displayPageHeader($color, 'None');
        "</td></tr>\n";
 
 if (!$disable_compose_translate) {
-   echo '<tr>'.html_tag('td',_("When composing:"),'right','','nowrap').
+   echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
          '<td><input type="checkbox" name="translate_translate_show_send"';
    if ($translate_show_send)
       echo ' checked="checked"';
@@ -81,4 +78,4 @@ if (!$disable_compose_translate) {
 </td></tr>
 </table>
 </form>
-</body></html>
\ No newline at end of file
+</body></html>