580828095b52aeab7cd6c5d2ec9915740d547147
5 * Copyright (c) 1999-2005 The SquirrelMail Project Team
6 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 * Pick your translator to translate the body of incoming mail messages
12 * @subpackage translate
16 * Path for SquirrelMail required files.
19 define('SM_PATH','../../');
21 /** SquirrelMail required files. */
22 include_once(SM_PATH
. 'include/validate.php');
23 /** Plugin functions */
24 include_once(SM_PATH
. 'plugins/translate/functions.php');
26 displayPageHeader($color, 'None');
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
>
33 <p
><?php
echo _("Your server options are as follows:"); ?
></p
>
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:") .
50 '<td><select name="translate_translate_server">';
51 translate_showoption();
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").
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") .
80 <input type
="submit" value
="<?php echo _("Submit
"); ?>" name
="submit_translate" />