|
From: <ph...@us...> - 2007-08-20 11:28:57
|
Revision: 1001
http://xoops.svn.sourceforge.net/xoops/?rev=1001&view=rev
Author: phppp
Date: 2007-08-20 04:28:59 -0700 (Mon, 20 Aug 2007)
Log Message:
-----------
Added xoopsmailerlocal
Added Paths:
-----------
XoopsCore/branches/2.2.x/2.2.5/html/language/english/xoopsmailerlocal.php
Added: XoopsCore/branches/2.2.x/2.2.5/html/language/english/xoopsmailerlocal.php
===================================================================
--- XoopsCore/branches/2.2.x/2.2.5/html/language/english/xoopsmailerlocal.php (rev 0)
+++ XoopsCore/branches/2.2.x/2.2.5/html/language/english/xoopsmailerlocal.php 2007-08-20 11:28:59 UTC (rev 1001)
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Localize the mail functions
+ *
+ * The English localization is solely for demonstration
+ */
+// Do not change the class name
+class XoopsMailerLocal extends XoopsMailer {
+
+ function XoopsMailerLocal(){
+ $this->XoopsMailer();
+ // It is supposed no need to change the charset
+ $this->charSet = strtolower( _CHARSET );
+ // You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
+ $this->multimailer->SetLanguage("en");
+ }
+
+ // Multibyte languages are encouraged to make their proper method for encoding FromName
+ function encodeFromName($text)
+ {
+ // Activate the following line if needed
+ // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
+ return $text;
+ }
+
+ // Multibyte languages are encouraged to make their proper method for encoding Subject
+ function encodeSubject($text)
+ {
+ // Activate the following line if needed
+ // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
+ return $text;
+ }
+}
+?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|