3 You may not change or alter any portion of this comment or credits
\r
4 of supporting developers from this source code or any supporting source code
\r
5 which is considered copyrighted (c) material of the original comment or credit authors.
\r
7 This program is distributed in the hope that it will be useful,
\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\r
15 * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
\r
16 * @license http://www.fsf.org/copyleft/gpl.html GNU public license
\r
18 * @subpackage Xoops Mailer Local Language
\r
20 * @author Taiwen Jiang <phppp@users.sourceforge.net>
\r
21 * @version $Id: xoopsmailerlocal.php $
\r
23 defined('XOOPS_ROOT_PATH') or die('Restricted access');
\r
26 * Localize the mail functions
\r
28 * The English localization is solely for demonstration
\r
30 // Do not change the class name
\r
31 class XoopsMailerLocal extends XoopsMailer
\r
36 * @return XoopsMailerLocal
\r
38 function XoopsMailerLocal()
\r
40 $this->XoopsMailer();
\r
41 // It is supposed no need to change the charset
\r
42 $this->charSet = strtolower(_CHARSET);
\r
43 // You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
\r
44 $this->multimailer->SetLanguage("en");
\r
47 // Multibyte languages are encouraged to make their proper method for encoding FromName
\r
48 function encodeFromName($text)
\r
50 // Activate the following line if needed
\r
51 // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
\r
55 // Multibyte languages are encouraged to make their proper method for encoding Subject
\r
56 function encodeSubject($text)
\r
58 // Activate the following line if needed
\r
59 // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
\r