* Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
- * $Id$
+ * @version $Id$
* @package plugins
* @subpackage translate
*/
/**
* Initialize the translation plugin
* @return void
+ * @access private
*/
function squirrelmail_plugin_init_translate() {
global $squirrelmail_plugin_hooks;
/**
* Shows translation box in message display window
+ * @access private
*/
function translate_read_form() {
global $color, $translate_server;
/**
* Closes table tags in translation box
+ * @access private
*/
function translate_table_end() {
?></td>
}
/**
- * FIXME:
- * Undocumented function.
+ * FIXME: Undocumented function.
+ * @access private
*/
function translate_button() {
global $translate_show_send;
/**
* Adds translation option block
+ * @access private
*/
function translate_optpage_register_block() {
global $optpage_blocks;
/**
* Gets user's translation preferences
+ * @access private
*/
function translate_pref() {
global $username, $data_dir;
/**
* Tries to select default translation combination
- *
- * @param string $test language code that has to be tested.
- * @returm boolean true if language code matches user's language.
*
* This function could be speed up.
* It basically negates the process if a ! is found in the beginning and
* matches a * at the end with 0 or more characters.
+ *
+ * @param string $test language code that has to be tested.
+ * @return boolean true if language code matches user's language.
+ * @access private
*/
function translate_does_it_match_language($test) {
global $squirrelmail_language;
/**
* Creates language option selection box.
+ *
+ * @access private
*/
function translate_lang_opt($from, $to, $value, $text) {
global $translate_dir;
* Starts translation box
*
* @param string $action url that has to recieve message for translation
+ * @access private
*/
function translate_new_form($action) {
global $translate_dir, $translate_new_window, $translate_location;
* Babelfish translation engine functions
*
* @param string $message text that has to be translated.
+ * @access private
*/
function translate_form_babelfish($message) {
translate_new_form('http://babelfish.altavista.com/babelfish/tr');
* go.com translation engine (disabled)
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_go($message) {
translate_new_form('http://translator.go.com/cb/trans_entry');
* intertran translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_intertran($message) {
translate_new_form('http://www.tranexp.com:2000/InterTran');
* gpltrans translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_gpltrans($message) {
translate_new_form('http://www.translator.cx/cgi-bin/gplTrans');
* reference.com (dictionary) translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_dictionary($message) {
translate_new_form('http://dictionary.reference.com/translate/text.html');
* otenet translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_otenet($message) {
translate_new_form('http://systran.otenet.gr/cgi-bin/systran.cgi');
* promt translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_promt($message) {
translate_new_form('http://www.translate.ru/text.asp#tr_form');
* google translation engine
*
* @param string $message text that has to be translated
+ * @access private
*/
function translate_form_google($message) {
translate_new_form('http://www.google.com/translate_t');
translate_table_end();
}
-?>
+?>
\ No newline at end of file