/**
* SquirrelMail translate plugin functions
*
- * @copyright © 2004-2006 The SquirrelMail Project Team
+ * @copyright © 2004-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
/**
* do not allow to call this file directly
*/
-if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) ||
- (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) {
+if (isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) {
header("Location: ../../src/login.php");
die();
}
$trans_ar = $message->findDisplayEntity(array(), array('text/plain'));
$body = '';
$final_body = '';
- if ($trans_ar[0] != '') {
+ if ( !empty($trans_ar[0]) ) {
for ($i = 0; $i < count($trans_ar); $i++) {
/* reduced version of formatBody and translateText functions */
translate_lang_opt('en_US', 'ko_KR', 'en|ko',
sprintf( _("%s to %s"),_("English"),_("Korean"))) .
translate_lang_opt('en_US', 'zh_CN', 'en|zh-CN',
- sprintf( _("%s to %s"),_("English"),_("Chinese (Simplified)"))) .
+ sprintf( _("%s to %s"),_("English"),_("Chinese, Simplified"))) .
translate_lang_opt('de_DE', 'en_US', 'de|en',
sprintf( _("%s to %s"),_("German"),_("English"))) .
translate_lang_opt('de_DE', '', 'de|fr',
translate_lang_opt('ko_KR', '', 'ko|en',
sprintf( _("%s to %s"),_("Korean"),_("English"))).
translate_lang_opt('zh_CN', '', 'zh-CN|en',
- sprintf( _("%s to %s"),_("Chinese (Simplified)"),_("English")));
+ sprintf( _("%s to %s"),_("Chinese, Simplified"),_("English")));
echo '</select>'.
'<input type="hidden" name="hl" value="en" />' .
'<input type="hidden" name="ie" value="UTF8" />' .