$translate_promt_enabled, $translate_otenet_enabled;
global $translate_custom_enabled;
+
if (!$translate_show_read) {
return;
}
$translate_dictionary_enabled, $translate_google_enabled,
$translate_gpltrans_enabled, $translate_intertran_enabled,
$translate_promt_enabled, $translate_otenet_enabled;
- global $translate_custom_enabled;
+ global $translate_custom_enabled, $translate_gpltrans_url;
if ($translate_babelfish_enabled) translate_showoption_internal('server','babelfish', 'Babelfish');
if ($translate_go_enabled) translate_showoption_internal('server','go', 'Go.com');
* @access private
*/
function translate_new_form($action) {
- global $translate_dir, $translate_new_window, $translate_location;
+ global $translate_dir, $translate_location;
global $color, $translate_same_window;
echo '<form action="';
* @access private
*/
function translate_form_gpltrans($message) {
- translate_new_form('http://www.translator.cx/cgi-bin/gplTrans');
+ global $translate_gpltrans_url;
+
+ // make sure that it is not empty
+ if ($translate_gpltrans_url=='')
+ $translate_gpltrans_url='http://www.translator.cx/cgi-bin/gplTrans';
+
+ translate_new_form($translate_gpltrans_url);
echo '<select name="language">'.
translate_lang_opt('', 'nl_NL', 'dutch_dict', _("Dutch")).
translate_lang_opt('', 'fr_FR', 'french_dict', _("French")).