X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ftranslate%2Foptions.php;h=de3f592306ac4905e25c6dfb20fa8224b8beebe3;hb=38a7b6a0acbc146fb0ac9fc21bc0d174be2bb6b1;hp=9a702f2bf0623f65c700fc4089b8a871c60b6dbf;hpb=849bdf42ed7bd7cca68909d2b46869742dfd210e;p=squirrelmail.git diff --git a/plugins/translate/options.php b/plugins/translate/options.php index 9a702f2b..de3f5923 100644 --- a/plugins/translate/options.php +++ b/plugins/translate/options.php @@ -6,33 +6,33 @@ ** **/ - chdir(".."); + chdir('..'); session_start(); if (!isset($config_php)) - include("../config/config.php"); + include_once('../config/config.php'); if (!isset($strings_php)) - include("../functions/strings.php"); + include_once('../functions/strings.php'); if (!isset($page_header_php)) - include("../functions/page_header.php"); + include_once('../functions/page_header.php'); if (!isset($display_messages_php)) - include("../functions/display_messages.php"); + include_once('../functions/display_messages.php'); if (!isset($imap_php)) - include("../functions/imap.php"); + include_once('../functions/imap.php'); if (!isset($array_php)) - include("../functions/array.php"); + include_once('../functions/array.php'); if (!isset($i18n_php)) - include("../functions/i18n.php"); + include_once('../functions/i18n.php'); - include("../src/load_prefs.php"); - displayPageHeader($color, "None"); + require_once('../src/load_prefs.php'); + displayPageHeader($color, 'None'); - $translate_server = getPref($data_dir, $username, "translate_server"); - if ($translate_server == '') + $translate_server = getPref($data_dir, $username, 'translate_server'); + if ($translate_server == '') $translate_server = 'babelfish'; - $translate_location = getPref($data_dir, $username, "translate_location"); + $translate_location = getPref($data_dir, $username, 'translate_location'); if ($translate_location == '') $translate_location = 'center'; $translate_show_read = getPref($data_dir, $username, 'translate_show_read'); @@ -42,9 +42,9 @@ function ShowOption($Var, $value, $Desc) { $Var = 'translate_' . $Var; - + global $$Var; - + echo '\n"; } - + + function ShowTrad( $tit, $com, $url ) { + + echo "
  • $tit - ". + $com . + "[ $tit ]
  • "; + + } ?>
    - '. + ''. + '
    -
    - Translator
    +
    +
    -

    Your server options are as follows:

    - -
      - -
    • Babelfish - - 13 language pairs, - maximum of 1000 characters translated, - powered by Systran - [ Babelfish ]
    • - -
    • Go.com - - 10 language pairs, - maximum of 25 kilobytes translated, - powered by Systran - [ Translator.Go.com ]
    • - -
    • Dictionary.com - - 12 language pairs, - no known limits, - powered by Systran - [ Dictionary.com ]
    • - -
    • InterTran - - 767 language pairs, - no known limits, - powered by Translation Experts's InterTran - [ Translation Experts ]
    • - -
    • GPLTrans - - 8 language pairs, - no known limits, - powered by GPLTrans (free, open source) - [ GPLTrans ]
    • +

      +
        +
      - -

      You also decide if you want the translation box displayed, - and where it will be located.

      +

      +

      - + - - - - ' . + ''. + ''. + ''. + ' - -
      Select your translator:
      -
      When reading:> - Show translation box -
      - > - Translate inside the SquirrelMail frames
      When composing:' . + '
      ' . + _("When reading:") . + ' - ' . _("Show translation box") . + '
      '. + ' - ' . _("Translate inside the SquirrelMail frames"). + '
      '. + _("When composing:") . '> - Not yet functional, currently does nothing
      - -
      -
      - + echo '> - ' . _("Not yet functional, currently does nothing") . + '
    '. + ''. + '
    '. + ''. +"\n";