Add ability to show login error from the IMAP server instead of traditional "Unknown...
[squirrelmail.git] / plugins / translate / options.php
1 <?php
2
3 /**
4 * options.php
5 *
6 * Pick your translator to translate the body of incoming mail messages
7 *
8 * @copyright 1999-2014 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id$
11 * @package plugins
12 * @subpackage translate
13 */
14
15 /**
16 * Include the SquirrelMail initialization file.
17 */
18 require('../../include/init.php');
19
20 /** Plugin functions */
21 include_once(SM_PATH . 'plugins/translate/functions.php');
22
23 displayPageHeader($color);
24
25 ?>
26 <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
27 <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
28 </td></tr></table>
29
30 <p><?php echo _("Your server options are as follows:"); ?></p>
31
32 <ul>
33 <?php
34 translate_showtrad();
35 ?>
36 </ul>
37 <p>
38 <?php
39 echo _("You also decide if you want the translation box displayed, and where it will be located.") .
40 '<form action="'.sqm_baseuri().'src/options.php" method="post">'.
41 '<input type="hidden" name="optmode" value="submit" />' .
42 '<input type="hidden" name="optpage" value="translate" />' .
43 '<table border="0" cellpadding="0" cellspacing="2">'.
44 '<tr><td align="right" style="white-space: nowrap;">' .
45 _("Select your translator:") .
46 '</td>'.
47 '<td><select name="translate_translate_server">';
48 translate_showoption();
49 echo '</select>' .
50 '</td></tr>' .
51 '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
52 '<td><input type="checkbox" name="translate_translate_show_read"';
53 if ($translate_show_read)
54 echo ' checked="checked"';
55 echo ' /> - ' . _("Show translation box") .
56 ' <select name="translate_translate_location">';
57 translate_showoption_internal('location', 'left', _("to the left"));
58 translate_showoption_internal('location', 'center', _("in the center"));
59 translate_showoption_internal('location', 'right', _("to the right"));
60 echo '</select><br />'.
61 '<input type="checkbox" name="translate_translate_same_window"';
62 if ($translate_same_window)
63 echo ' checked="checked"';
64 echo ' /> - ' . _("Translate inside the SquirrelMail frames").
65 "</td></tr>\n";
66
67 if (!$disable_compose_translate) {
68 echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
69 '<td><input type="checkbox" name="translate_translate_show_send"';
70 if ($translate_show_send)
71 echo ' checked="checked"';
72 echo ' /> - ' . _("Not yet functional, currently does nothing") .
73 "</td></tr>\n";
74 }
75 ?>
76 <tr><td></td><td>
77 <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_translate" />
78 </td></tr>
79 </table>
80 </form>
81 </body></html>