From bb3ecba2a91cf935225f6732c54db41faf0891a7 Mon Sep 17 00:00:00 2001 From: jervfors Date: Sat, 16 Oct 2004 06:33:08 +0000 Subject: [PATCH] XHTML fixes, trimming blanks, removing tabs etc. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8196 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/translate/config_default.php | 4 ++-- plugins/translate/functions.php | 34 ++++++++++++++-------------- plugins/translate/index.php | 2 +- plugins/translate/options.php | 6 ++--- plugins/translate/setup.php | 4 ++-- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/plugins/translate/config_default.php b/plugins/translate/config_default.php index 97edc21b..b922bcf9 100644 --- a/plugins/translate/config_default.php +++ b/plugins/translate/config_default.php @@ -84,8 +84,8 @@ $disable_compose_translate=true; /** * Controls inclusion of custom translation engines. * - * If you enable custon translation engines, you must include - * translate_custom(), translate_custom_showtrad() and + * If you enable custon translation engines, you must include + * translate_custom(), translate_custom_showtrad() and * $translate_custom_showoption() functions in your config. * @example config-sample.php * @global bool $translate_custom_enabled diff --git a/plugins/translate/functions.php b/plugins/translate/functions.php index 2c3a96bd..42c52c0e 100644 --- a/plugins/translate/functions.php +++ b/plugins/translate/functions.php @@ -50,8 +50,8 @@ if (file_exists(SM_PATH . 'config/translate_config.php')) { /** Setup functions */ -/** - * Shows translation box in message display window +/** + * Shows translation box in message display window * @access private */ function translate_read_form_function() { @@ -74,7 +74,7 @@ function translate_read_form_function() { if ($translate_server=='gpltrans' && $translate_gpltrans_url=='' || ! $$translate_server_option || ! function_exists('translate_form_' . $translate_server)) { error_box(_("Selected translation engine is disabled. Please update your translation preferences."),$color); - return; + return; } $translate_dir = 'to'; @@ -131,7 +131,7 @@ function translate_optpage_function() { * Gets user's translation preferences * @access private */ -function translate_pref_function() { +function translate_pref_function() { global $username, $data_dir; global $translate_server, $translate_location; global $translate_show_send, $translate_show_read; @@ -179,8 +179,8 @@ function translate_showoption() { if ($translate_go_enabled) translate_showoption_internal('server','go', 'Go.com'); if ($translate_dictionary_enabled) translate_showoption_internal('server','dictionary', 'Dictionary.com'); if ($translate_google_enabled) translate_showoption_internal('server','google', 'Google Translate'); - if ($translate_gpltrans_enabled && $translate_gpltrans_url!='') - translate_showoption_internal('server','gpltrans', 'GPLTrans'); + if ($translate_gpltrans_enabled && $translate_gpltrans_url!='') + translate_showoption_internal('server','gpltrans', 'GPLTrans'); if ($translate_intertran_enabled) translate_showoption_internal('server','intertran', 'Intertran'); if ($translate_otenet_enabled) translate_showoption_internal('server','otenet', 'OTEnet'); if ($translate_promt_enabled) translate_showoption_internal('server','promt', 'PROMT'); @@ -201,35 +201,35 @@ function translate_showtrad() { if ($translate_babelfish_enabled) translate_showtrad_internal( 'Babelfish', _("Maximum of 1000 characters translated, powered by Systran"). - "
".sprintf(_("Number of supported language pairs: %s"),"19")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'19').' ' , 'http://babelfish.altavista.com/' ); if ($translate_go_enabled) translate_showtrad_internal( 'Translator.Go.com', _("Maximum of 25 kilobytes translated, powered by Systran"). - "
".sprintf(_("Number of supported language pairs: %s"),"10")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'10').' ' , 'http://translator.go.com/' ); if ($translate_dictionary_enabled) translate_showtrad_internal( 'Dictionary.com', _("No known limits, powered by Systran"). - "
".sprintf(_("Number of supported language pairs: %s"),"24")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'24').' ' , 'http://www.dictionary.com/translate' ); if ($translate_google_enabled) translate_showtrad_internal( 'Google Translate', _("No known limits, powered by Systran"). - "
".sprintf(_("Number of supported language pairs: %s"),"12")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'12').' ' , 'http://www.google.com/translate' ); if ($translate_gpltrans_enabled && $translate_gpltrans_url!='') translate_showtrad_internal( 'GPLTrans', _("No known limits, powered by GPLTrans (free, open source)"). - "
".sprintf(_("Number of supported language pairs: %s"),"16")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'16').' ' , 'http://www.translator.cx/' ); if ($translate_intertran_enabled) translate_showtrad_internal( 'InterTran', _("No known limits, powered by Translation Experts' InterTran"). - "
".sprintf(_("Number of supported languages: %s"),"29")." " , + '
'.sprintf(_("Number of supported languages: %s"),'29').' ' , 'http://www.tranexp.com/' ); if ($translate_otenet_enabled) translate_showtrad_internal( 'OTEnet', _("Hellenic translations, no known limits, powered by Systran"). - "
".sprintf(_("Number of supported language pairs: %s"),"20")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'20').' ' , 'http://systran.otenet.gr/' ); if ($translate_promt_enabled) translate_showtrad_internal( 'PROMT', _("Russian translations, maximum of 500 characters translated"). - "
".sprintf(_("Number of supported language pairs: %s"),"13")." " , + '
'.sprintf(_("Number of supported language pairs: %s"),'13').' ' , 'http://www.online-translator.com/' ); if ($translate_custom_enabled && function_exists('translate_custom_showtrad')) { @@ -385,10 +385,10 @@ function translate_new_form($action) { echo ">\n"; - ?>> + ?>
- +
'. ''. diff --git a/plugins/translate/index.php b/plugins/translate/index.php index 9befff83..3bc40111 100644 --- a/plugins/translate/index.php +++ b/plugins/translate/index.php @@ -13,4 +13,4 @@ */ header("Location:../../src/login.php\n\n"); exit(); -?> +?> \ No newline at end of file diff --git a/plugins/translate/options.php b/plugins/translate/options.php index faaff93a..711238b3 100644 --- a/plugins/translate/options.php +++ b/plugins/translate/options.php @@ -76,7 +76,7 @@ $translate_same_window = getPref($data_dir, $username, 'translate_same_window');

"._("Saved Translation Options")."

\n"; + print '

'._("Saved Translation Options")."

\n"; }?>

@@ -91,7 +91,7 @@ $translate_same_window = getPref($data_dir, $username, 'translate_same_window'); echo _("You also decide if you want the translation box displayed, and where it will be located.") . '
'. ''. - ''. '
' . + '
' . _("Select your translator:") . '
- + \ No newline at end of file diff --git a/plugins/translate/setup.php b/plugins/translate/setup.php index 072a19b8..a1419c97 100644 --- a/plugins/translate/setup.php +++ b/plugins/translate/setup.php @@ -37,8 +37,8 @@ function squirrelmail_plugin_init_translate() { // $squirrelmail_plugin_hooks['compose_button_row']['translate'] = 'translate_button'; } -/** - * Shows translation box in message display window +/** + * Shows translation box in message display window * @access private */ function translate_read_form() { -- 2.25.1