X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ftranslate%2Fsetup.php;h=af6f7204c840a18c89083dc0d1a849493f9abd32;hp=927831ae58b1ad59f44a676e95269e03e9ee264b;hb=ea5f4b8eaf805c4cc4e9533e87d057300a7fe666;hpb=008ca1ad42c9618ae3b6f65bc30eca766930ef19 diff --git a/plugins/translate/setup.php b/plugins/translate/setup.php index 927831ae..af6f7204 100644 --- a/plugins/translate/setup.php +++ b/plugins/translate/setup.php @@ -7,6 +7,8 @@ * Licensed under the GNU GPL. For full terms see the file COPYING. * * $Id$ + * @package plugins + * @subpackage translate */ /* Easy plugin that sends the body of the message to a new browser @@ -31,7 +33,10 @@ outgoing message if you send it to someone in a different country. */ -/* Initialize the translation plugin */ +/** + * Initialize the translation plugin + * @return void + */ function squirrelmail_plugin_init_translate() { global $squirrelmail_plugin_hooks; @@ -527,4 +532,168 @@ function translate_form_dictionary($message) { translate_table_end(); } + +function translate_form_otenet($message) { + translate_new_form('http://systran.otenet.gr/cgi-bin/systran.cgi'); +?> + + + + '; + translate_table_end(); + +} + +function translate_form_promt($message) { + translate_new_form('http://www.translate.ru/text.asp#tr_form'); + echo ''; + echo ""; + echo _("Interface language")." : "; + echo "
\n"; + echo _("Translation direction")." : "; + echo '
\n"; + echo "\n"; + echo 'PROMT: '; + + translate_table_end(); +} + ?>