From b0abf4b10e90a11ae0fe8f8c262c7c7bf968a808 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 13 Jul 2003 10:45:45 +0000 Subject: [PATCH] Added translate.ru online translator. Changed strings. Now it is possible to change number of available languages or language pairs without squirrelmail.po update. Different string used for InterTran is not mistake. It looks better when string says "Number of supported languages = 28" instead of "Number of supported language pairs = 28^2" git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5316 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/translate/options.php | 20 +++++++--- plugins/translate/setup.php | 70 +++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 5 deletions(-) diff --git a/plugins/translate/options.php b/plugins/translate/options.php index bed2196e..a90bf6c5 100644 --- a/plugins/translate/options.php +++ b/plugins/translate/options.php @@ -105,23 +105,32 @@ require_once(SM_PATH . 'include/load_prefs.php');

@@ -140,6 +149,7 @@ require_once(SM_PATH . 'include/load_prefs.php'); ShowOption('server', 'intertran', 'Intertran'); ShowOption('server', 'gpltrans', 'GPLTrans'); ShowOption('server', 'otenet', 'OTEnet'); + ShowOption('server', 'promt', 'PROMT'); echo '' . '' . '' . diff --git a/plugins/translate/setup.php b/plugins/translate/setup.php index e017d866..de129663 100644 --- a/plugins/translate/setup.php +++ b/plugins/translate/setup.php @@ -556,4 +556,74 @@ function translate_form_otenet($message) { 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(); +} + ?> -- 2.25.1