RFC 3676 says there can't be more in the signature delimiter line than this
[squirrelmail.git] / plugins / translate / options.php
CommitLineData
849bdf42 1<?php
4b4abf93 2
8d6a115b 3/**
4 * options.php
5 *
8d6a115b 6 * Pick your translator to translate the body of incoming mail messages
7 *
1977ab55 8 * @copyright 1999-2010 The SquirrelMail Project Team
4b4abf93 9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
87392775 10 * @version $Id$
ea5f4b8e 11 * @package plugins
12 * @subpackage translate
8d6a115b 13 */
aa7fb30c 14
ea5f4b8e 15/**
202bcbcc 16 * Include the SquirrelMail initialization file.
ea5f4b8e 17 */
202bcbcc 18require('../../include/init.php');
8d6a115b 19
859f3947 20/** Plugin functions */
20bc790c 21include_once(SM_PATH . 'plugins/translate/functions.php');
8d6a115b 22
876fdb60 23displayPageHeader($color);
87392775 24
849bdf42 25?>
6fd95361 26 <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
f265009a 27 <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
849bdf42 28 </td></tr></table>
29
38a7b6a0 30 <p><?php echo _("Your server options are as follows:"); ?></p>
849bdf42 31
38a7b6a0 32 <ul>
33<?php
20bc790c 34 translate_showtrad();
38a7b6a0 35?>
849bdf42 36 </ul>
38a7b6a0 37 <p>
38<?php
e38ebf4d 39 echo _("You also decide if you want the translation box displayed, and where it will be located.") .
afb00732 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" />' .
6fd95361 43 '<table border="0" cellpadding="0" cellspacing="2">'.
c435f076 44 '<tr><td align="right" style="white-space: nowrap;">' .
e38ebf4d 45 _("Select your translator:") .
46 '</td>'.
47 '<td><select name="translate_translate_server">';
20bc790c 48 translate_showoption();
49 echo '</select>' .
50 '</td></tr>' .
c435f076 51 '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
20bc790c 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";
e38ebf4d 66
ea526024 67if (!$disable_compose_translate) {
c435f076 68 echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
6fd95361 69 '<td><input type="checkbox" name="translate_translate_show_send"';
849bdf42 70 if ($translate_show_send)
6fd95361 71 echo ' checked="checked"';
87392775 72 echo ' /> - ' . _("Not yet functional, currently does nothing") .
ea526024 73 "</td></tr>\n";
74}
6fd95361 75?>
76<tr><td></td><td>
77<input type="submit" value="<?php echo _("Submit"); ?>" name="submit_translate" />
78</td></tr>
79</table>
80</form>
876fdb60 81</body></html>