- echo _("You also decide if you want the translation box displayed, and where it will be located.");
-?></p>
-
- <form action="../../src/options.php" method=post>
- <table border=0 cellpadding=0 cellspacing=2>
- <tr><td align=right nowrap><?php echo _("Select your translator:"); ?></td>
- <td><select name="translate_translate_server">
-<?PHP
- ShowOption('server', 'babelfish', 'Babelfish');
- ShowOption('server', 'go', 'Go.com');
- ShowOption('server', 'dictionary', 'Dictionary.com');
- ShowOption('server', 'intertran', 'Intertran');
- ShowOption('server', 'gpltrans', 'GPLTrans');
- echo '</select>' .
- '</td></tr>' .
- '<tr><td align=right nowrap>' .
- _("When reading:") .
- '</td>'.
- '<td><input type=checkbox name="translate_translate_show_read"';
- if ($translate_show_read)
- echo " CHECKED";
- echo '> - ' . _("Show translation box") .
- ' <select name="translate_translate_location">';
- ShowOption('location', 'left', _("to the left"));
- ShowOption('location', 'center', _("in the center"));
- ShowOption('location', 'right', _("to the right"));
- echo '</select><br>'.
- '<input type=checkbox name="translate_translate_same_window"';
- if ($translate_same_window)
- echo " CHECKED";
- echo '> - ' . _("Translate inside the SquirrelMail frames").
- '</td></tr>'.
- '<tr><td align=right nowrap>'.
- _("When composing:") . '</td>'.
- '<td><input type=checkbox name="translate_translate_show_send"';
+ echo _("You also decide if you want the translation box displayed, and where it will be located.") .
+ '<form action="'.sqm_baseuri().'src/options.php" method="post">'.
+ '<input type="hidden" name="optmode" value="submit" />' .
+ '<input type="hidden" name="optpage" value="translate" />' .
+ '<table border="0" cellpadding="0" cellspacing="2">'.
+ '<tr><td align="right" style="white-space: nowrap;">' .
+ _("Select your translator:") .
+ '</td>'.
+ '<td><select name="translate_translate_server">';
+ translate_showoption();
+ echo '</select>' .
+ '</td></tr>' .
+ '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
+ '<td><input type="checkbox" name="translate_translate_show_read"';
+ if ($translate_show_read)
+ echo ' checked="checked"';
+ echo ' /> - ' . _("Show translation box") .
+ ' <select name="translate_translate_location">';
+ translate_showoption_internal('location', 'left', _("to the left"));
+ translate_showoption_internal('location', 'center', _("in the center"));
+ translate_showoption_internal('location', 'right', _("to the right"));
+ echo '</select><br />'.
+ '<input type="checkbox" name="translate_translate_same_window"';
+ if ($translate_same_window)
+ echo ' checked="checked"';
+ echo ' /> - ' . _("Translate inside the SquirrelMail frames").
+ "</td></tr>\n";
+
+if (!$disable_compose_translate) {
+ echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
+ '<td><input type="checkbox" name="translate_translate_show_send"';