OSDN Git Service

Google Code に入れていた最新 r54 (2011/12/17) を反映 | https://code.google.com/p/xoops-core...
[xoops-japanese/XOOPS-Core.git] / XOOPS2.3 / euc / language / japanese / xoopsmailerlocal.php
1 <?php\r
2 /**\r
3  * Localize the mail functions\r
4  *\r
5  * The English localization is solely for demonstration\r
6  */\r
7 // Do not change the class name\r
8 class XoopsMailerLocal extends XoopsMailer\r
9 {\r
10 \r
11         function XoopsMailerLocal() {\r
12                 $this->XoopsMailer();\r
13                 // It is supposed no need to change the charset\r
14                 $this->charSet = strtolower( _CHARSET );\r
15                 // 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
16             $this->multimailer->SetLanguage("en");\r
17         }\r
18         \r
19         // Multibyte languages are encouraged to make their proper method for encoding FromName\r
20         function encodeFromName($text)\r
21         {\r
22                 // Activate the following line if needed\r
23                 // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";\r
24                 return $text;\r
25         }\r
26 \r
27         // Multibyte languages are encouraged to make their proper method for encoding Subject\r
28         function encodeSubject($text)\r
29         {\r
30                 // Activate the following line if needed\r
31                 // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";\r
32                 return $text;\r
33         }\r
34 }\r
35 ?>