Changing squirrelmail/Squirrelmail to SquirrelMail in some strings as well as other...
[squirrelmail.git] / plugins / translate / options.php
CommitLineData
849bdf42 1<?php
8d6a115b 2/**
3 * options.php
4 *
6c84ba1e 5 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8d6a115b 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 *
87392775 10 * @version $Id$
ea5f4b8e 11 * @package plugins
12 * @subpackage translate
8d6a115b 13 */
aa7fb30c 14
ea5f4b8e 15/**
16 * Path for SquirrelMail required files.
17 * @ignore
18 */
92219031 19define('SM_PATH','../../');
8d6a115b 20
859f3947 21/** SquirrelMail required files. */
20bc790c 22include_once(SM_PATH . 'include/validate.php');
859f3947 23/** Plugin functions */
20bc790c 24include_once(SM_PATH . 'plugins/translate/functions.php');
8d6a115b 25
87392775 26displayPageHeader($color, 'None');
27
849bdf42 28?>
6fd95361 29 <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
38a7b6a0 30 <center><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></center>
849bdf42 31 </td></tr></table>
32
38a7b6a0 33 <p><?php echo _("Your server options are as follows:"); ?></p>
849bdf42 34
38a7b6a0 35 <ul>
36<?php
20bc790c 37 translate_showtrad();
38a7b6a0 38?>
849bdf42 39 </ul>
38a7b6a0 40 <p>
41<?php
e38ebf4d 42 echo _("You also decide if you want the translation box displayed, and where it will be located.") .
afb00732 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" />' .
6fd95361 46 '<table border="0" cellpadding="0" cellspacing="2">'.
c435f076 47 '<tr><td align="right" style="white-space: nowrap;">' .
e38ebf4d 48 _("Select your translator:") .
49 '</td>'.
50 '<td><select name="translate_translate_server">';
20bc790c 51 translate_showoption();
52 echo '</select>' .
53 '</td></tr>' .
c435f076 54 '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
20bc790c 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";
e38ebf4d 69
ea526024 70if (!$disable_compose_translate) {
c435f076 71 echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
6fd95361 72 '<td><input type="checkbox" name="translate_translate_show_send"';
849bdf42 73 if ($translate_show_send)
6fd95361 74 echo ' checked="checked"';
87392775 75 echo ' /> - ' . _("Not yet functional, currently does nothing") .
ea526024 76 "</td></tr>\n";
77}
6fd95361 78?>
79<tr><td></td><td>
80<input type="submit" value="<?php echo _("Submit"); ?>" name="submit_translate" />
81</td></tr>
82</table>
83</form>
bb3ecba2 84</body></html>