OSDN Git Service

Google Code に入れていた最新 r54 (2011/12/17) を反映 | https://code.google.com/p/xoops-core...
[xoops-japanese/XOOPS-Core.git] / XOOPS2.5 / utf-8 / language / japanese / xoopsmailerlocal.php
1 <?php\r
2 /*\r
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
6  \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
10 */\r
11 \r
12 /**\r
13  *  Xoops Language\r
14  *\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
17  * @package         kernel\r
18  * @subpackage      Xoops Mailer Local Language\r
19  * @since           2.3.0\r
20  * @author          Taiwen Jiang <phppp@users.sourceforge.net>\r
21  * @version         $Id: xoopsmailerlocal.php $\r
22  */\r
23 defined('XOOPS_ROOT_PATH') or die('Restricted access');\r
24 \r
25 /**\r
26  * Localize the mail functions\r
27  *\r
28  * The English localization is solely for demonstration\r
29  */\r
30 // Do not change the class name\r
31 class XoopsMailerLocal extends XoopsMailer\r
32 {\r
33     /**\r
34      * Constructer\r
35      *\r
36      * @return XoopsMailerLocal\r
37      */\r
38     function XoopsMailerLocal()\r
39     {\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
45     }\r
46     \r
47     // Multibyte languages are encouraged to make their proper method for encoding FromName\r
48     function encodeFromName($text)\r
49     {\r
50         // Activate the following line if needed\r
51         // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";\r
52         return $text;\r
53     }\r
54     \r
55     // Multibyte languages are encouraged to make their proper method for encoding Subject\r
56     function encodeSubject($text)\r
57     {\r
58         // Activate the following line if needed\r
59         // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";\r
60         return $text;\r
61     }\r
62 }\r
63 ?>