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