5 ** Pick your translator to translate the body of incoming mail messages
13 if (!isset($config_php))
14 include("../config/config.php");
15 if (!isset($strings_php))
16 include("../functions/strings.php");
17 if (!isset($page_header_php))
18 include("../functions/page_header.php");
19 if (!isset($display_messages_php))
20 include("../functions/display_messages.php");
21 if (!isset($imap_php))
22 include("../functions/imap.php");
23 if (!isset($array_php))
24 include("../functions/array.php");
25 if (!isset($i18n_php))
26 include("../functions/i18n.php");
29 include("../src/load_prefs.php");
30 displayPageHeader($color, "None");
32 $translate_server = getPref($data_dir, $username, "translate_server");
33 if ($translate_server == '')
34 $translate_server = 'babelfish';
35 $translate_location = getPref($data_dir, $username, "translate_location");
36 if ($translate_location == '')
37 $translate_location = 'center';
38 $translate_show_read = getPref($data_dir, $username, 'translate_show_read');
39 $translate_show_send = getPref($data_dir, $username, 'translate_show_send');
40 $translate_same_window = getPref($data_dir, $username, 'translate_same_window');
42 function ShowOption($Var, $value, $Desc)
44 $Var = 'translate_' . $Var;
48 echo '<option value="' . $value . '"';
53 echo '>' . $Desc . "</option>\n";
59 <table width
=95% align
=center border
=0 cellpadding
=2 cellspacing
=0><tr
><td bgcolor
="<?php echo $color[0] ?>">
60 <center
><b
><?php
echo _("Options") ?
> - Translator
</b
></center
>
63 <p
>Your server options are
as follows
:</p
>
67 <li
><b
>Babelfish
</b
> -
69 maximum of
1000 characters translated
,
71 [ <a href
="http://babelfish.altavista.com/"
72 target
="_blank">Babelfish
</a
> ]</li
>
76 maximum of
25 kilobytes translated
,
78 [ <a href
="http://translator.go.com/"
79 target
="_blank">Translator
.Go
.com
</a
> ]</li
>
81 <li
><b
>Dictionary
.com
</b
> -
85 [ <a href
="http://www.dictionary.com/translate"
86 target
="_blank">Dictionary
.com
</a
> ]</li
>
88 <li
><b
>InterTran
</b
> -
91 powered by Translation Experts
's InterTran
92 [ <a href="http://www.tranexp.com/"
93 target="_blank">Translation Experts</a> ]</li>
98 powered by GPLTrans (free, open source)
99 [ <a href="http://www.translator.cx/"
100 target="_blank">GPLTrans</a> ]</li>
104 <p>You also decide if you want the translation box displayed,
105 and where it will be located.</p>
107 <form action="../../src/options.php" method=post>
108 <table border=0 cellpadding=0 cellspacing=2>
109 <tr><td align=right nowrap>Select your translator:</td>
110 <td><select name="translate_translate_server">
112 ShowOption('server
', 'babelfish
', 'Babelfish
');
113 ShowOption('server
', 'go
', 'Go
.com
');
114 ShowOption('server
', 'dictionary
', 'Dictionary
.com
');
115 ShowOption('server
', 'intertran
', 'Intertran
');
116 ShowOption('server
', 'gpltrans
', 'GPLTrans
');
119 <tr><td align=right nowrap valign="top">When reading:</td>
120 <td><input type=checkbox name="translate_translate_show_read"<?PHP
121 if ($translate_show_read)
123 ?>> - Show translation box
124 <select name="translate_translate_location">
126 ShowOption('location
', 'left
', 'to the left
');
127 ShowOption('location
', 'center
', 'in the center
');
128 ShowOption('location
', 'right
', 'to the right
');
130 <input type=checkbox name="translate_translate_same_window"<?PHP
131 if ($translate_same_window)
133 ?>> - Translate inside the SquirrelMail frames</td></tr>
134 <tr><td align=right nowrap>When composing:</td>
135 <td><input type=checkbox name="translate_translate_show_send"<?PHP
136 if ($translate_show_send)
138 ?>> - Not yet functional, currently does nothing</td></tr>
140 <input type="submit" value="Submit" name="submit_translate">