RFC 3676 says there can't be more in the signature delimiter line than this
[squirrelmail.git] / plugins / translate / setup.php
CommitLineData
849bdf42 1<?php
4b4abf93 2
15e6162e 3/**
4 * setup.php
5 *
20bc790c 6 * Easy plugin that sends the body of the message to a new browser
7 * window using the specified translator.
8 *
9 * Translation of composed messages is not supported.
10 *
1977ab55 11 * @copyright 1999-2010 The SquirrelMail Project Team
4b4abf93 12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
87392775 13 * @version $Id$
ea5f4b8e 14 * @package plugins
15 * @subpackage translate
15e6162e 16 */
17
849bdf42 18
ea5f4b8e 19/**
20 * Initialize the translation plugin
21 * @return void
87392775 22 * @access private
ea5f4b8e 23 */
849bdf42 24function squirrelmail_plugin_init_translate() {
25 global $squirrelmail_plugin_hooks;
26
27 $squirrelmail_plugin_hooks['read_body_bottom']['translate'] = 'translate_read_form';
cbe5423b 28 $squirrelmail_plugin_hooks['optpage_register_block']['translate'] = 'translate_optpage_register_block';
849bdf42 29 $squirrelmail_plugin_hooks['loading_prefs']['translate'] = 'translate_pref';
859f3947 30 $squirrelmail_plugin_hooks['options_save']['translate'] = 'translate_save';
31 $squirrelmail_plugin_hooks['optpage_set_loadinfo']['translate'] = 'translate_set_loadinfo';
32 // $squirrelmail_plugin_hooks['compose_button_row']['translate'] = 'translate_button';
849bdf42 33}
34
bb3ecba2 35/**
36 * Shows translation box in message display window
87392775 37 * @access private
ea526024 38 */
849bdf42 39function translate_read_form() {
20bc790c 40 include_once(SM_PATH . 'plugins/translate/functions.php');
41 translate_read_form_function();
849bdf42 42}
43
ea526024 44/**
20bc790c 45 * Should add translation options in compose window
46 *
47 * Unimplemented
87392775 48 * @access private
ea526024 49 */
849bdf42 50function translate_button() {
20bc790c 51 include_once(SM_PATH . 'plugins/translate/functions.php');
52 translate_button_function();
849bdf42 53}
54
ea526024 55/**
20bc790c 56 * Calls translation option block function
87392775 57 * @access private
ea526024 58 */
cbe5423b 59function translate_optpage_register_block() {
20bc790c 60 include_once(SM_PATH . 'plugins/translate/functions.php');
61 translate_optpage_function();
849bdf42 62}
63
ea526024 64/**
20bc790c 65 * Calls user's translation preferences function
87392775 66 * @access private
ea526024 67 */
20bc790c 68function translate_pref() {
69 include_once(SM_PATH . 'plugins/translate/functions.php');
70 translate_pref_function();
702272dc 71}
859f3947 72
73/**
74 * Calls user's translation preferences saving function
75 * @access private
76 */
77function translate_save() {
78 include_once(SM_PATH . 'plugins/translate/functions.php');
79 translate_save_function();
80}
81
82/**
83 * Calls user's translation preferences set_loadinfo function
84 * @access private
85 */
86function translate_set_loadinfo() {
87 include_once(SM_PATH . 'plugins/translate/functions.php');
88 translate_set_loadinfo_function();
89}