File/plugins/translate/functions.php

Description

Translate plugin functions

Copyright (c) 2001-2006 The SquirrelMail Project Team Copyright (c) 2006-2009 The NaSMail Project This file is part of NaSMail Translate plugin. Original script version was provided by SquirrelMail webmail package and licensed under GPL.

Translate plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Translate plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Translate plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 1473 2009-11-04 20:02:03Z tokul $
Includes
 include_once (SM_PATH.'functions/forms.php') (line 32)
Functions
translate_does_it_match_language (line 127)

This function could be sped up.

It basically negates the process if a ! is found in the beginning and matches a * at the end with 0 or more characters.

void translate_does_it_match_language ( $test)
  • $test
translate_lang_opt (line 173)

creates translation engine language selection

Target locale allows to preselect some language. Same locale name should be used only once in select block.

Function was modified in 1.6. Older function used different set of arguments.

void translate_lang_opt (string $to, string $value, string $text)
  • string $to: Target locale.
  • string $value: Option name used by selected translation engine
  • string $text: Displayed name
translate_read_form_do (line 37)

Shows the translation for a message you're reading

void translate_read_form_do ()
translate_save_do (line 86)

Saves translation options

void translate_save_do ()
translate_table_end (line 597)

Closes translation engine form

void translate_table_end ()

Documentation generated on Sun, 22 Nov 2009 17:36:30 +0200 by phpDocumentor 1.4.3