X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ftranslate%2Fsetup.php;h=c59b1c80ed57eea0733934158c77d1fbf84958ea;hb=48027e89566ad3b27266166bc8f11cfbb5670d5b;hp=e017d866bc01637ee2788299a9a64db95c552d22;hpb=702272dc22a1a6bc5093651a2874b102c4828a26;p=squirrelmail.git diff --git a/plugins/translate/setup.php b/plugins/translate/setup.php index e017d866..c59b1c80 100644 --- a/plugins/translate/setup.php +++ b/plugins/translate/setup.php @@ -1,37 +1,28 @@ @@ -101,7 +99,10 @@ function translate_table_end() { @@ -239,133 +268,81 @@ function translate_form_babelfish($message) { '; translate_table_end(); } +/** + * go.com translation engine (disabled) + * + * @param string $message text that has to be translated + * @access private + */ function translate_form_go($message) { translate_new_form('http://translator.go.com/cb/trans_entry'); ?> ". 'Go.com: '; @@ -373,6 +350,12 @@ function translate_form_go($message) { translate_table_end(); } +/** + * intertran translation engine + * + * @param string $message text that has to be translated + * @access private + */ function translate_form_intertran($message) { translate_new_form('http://www.tranexp.com:2000/InterTran'); echo ''. @@ -381,64 +364,66 @@ function translate_form_intertran($message) { $left = ''; $right = ''; printf( _("%s to %s"), $left, $right ); echo 'InterTran: '; @@ -446,17 +431,23 @@ function translate_form_intertran($message) { translate_table_end(); } +/** + * gpltrans translation engine + * + * @param string $message text that has to be translated + * @access private + */ function translate_form_gpltrans($message) { translate_new_form('http://www.translator.cx/cgi-bin/gplTrans'); echo ''; echo '". - "". + echo "". + "". ''. 'Dictionary.com: '; translate_table_end(); } +/** + * otenet translation engine + * + * @param string $message text that has to be translated + * @access private + */ function translate_form_otenet($message) { translate_new_form('http://systran.otenet.gr/cgi-bin/systran.cgi'); ?> @@ -535,25 +538,148 @@ function translate_form_otenet($message) { '; translate_table_end(); } + +/** + * promt translation engine + * + * @param string $message text that has to be translated + * @access private + */ +function translate_form_promt($message) { + translate_new_form('http://www.online-translator.com/text.asp#tr_form'); + echo ''; + echo ""; + echo _("Interface language")." : "; + echo "
\n"; + echo _("Translation direction")." : "; + echo '
\n"; + echo "\n"; + echo 'PROMT: '; + + translate_table_end(); +} + +/** + * google translation engine + * + * @param string $message text that has to be translated + * @access private + */ +function translate_form_google($message) { + translate_new_form('http://www.google.com/translate_t'); ?> + + + + + '; + + translate_table_end(); +} + +?> \ No newline at end of file