View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003333 | mantisbt | public | 2003-08-31 12:08 | 2003-12-13 04:35 | |
| Reporter | vboctor | Assigned To | vboctor | ||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18.0rc1 | ||||
| Summary | 0003333: Support PHPMailer v1.7x | ||||
| Description | Mantis should support the new SetLanguage() method in PHPMailer. Mantis can either always set the language to English, or it can use s_phpmailer_language string which is language dependent. This can may to English for unsupported language, and to the right language for languages supported by PHPMailer. | ||||
| Tags | No tags attached. | ||||
| Attached Files | support_phpmailer_v1_7_x.diff (3,290 bytes)
Index: core/email_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v
retrieving revision 1.62
diff -u -r1.62 email_api.php
--- core/email_api.php 31 Aug 2003 10:17:08 -0000 1.62
+++ core/email_api.php 31 Aug 2003 10:30:18 -0000
@@ -601,6 +601,11 @@
$mail = new phpmailer;
$mail->PluginDir = $t_phpMailer_path;
+ # Support PHPMailer v1.7x
+ if ( method_exists( $mail, 'SetLanguage' ) ) {
+ $mail->SetLanguage( lang_get( 'phpmailer_language' ), $t_phpMailer_path . 'language' . DIRECTORY_SEPARATOR );
+ }
+
# Select the method to send mail
switch ( $g_phpMailer_method ) {
case 0: $mail->IsMail();
Index: lang/strings_english.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_english.txt,v
retrieving revision 1.142
diff -u -r1.142 strings_english.txt
--- lang/strings_english.txt 24 Aug 2003 02:59:57 -0000 1.142
+++ lang/strings_english.txt 31 Aug 2003 10:30:21 -0000
@@ -862,4 +862,7 @@
$s_attachments = "attachment(s)";
$s_attachment_alt = "A";
+
+# PHPMailer
+$s_phpmailer_language = 'en';
?>
Index: lang/strings_german.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_german.txt,v
retrieving revision 1.79
diff -u -r1.79 strings_german.txt
--- lang/strings_german.txt 24 Aug 2003 10:02:33 -0000 1.79
+++ lang/strings_german.txt 31 Aug 2003 10:30:24 -0000
@@ -864,4 +864,7 @@
$s_attachments = "Angeh�ngte Datei(en)";
$s_attachment_alt = "D";
+
+# PHPMailer
+$s_phpmailer_language = 'de';
?>
Index: lang/strings_italian.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_italian.txt,v
retrieving revision 1.57
diff -u -r1.57 strings_italian.txt
--- lang/strings_italian.txt 24 Aug 2003 10:02:33 -0000 1.57
+++ lang/strings_italian.txt 31 Aug 2003 10:30:27 -0000
@@ -863,4 +863,7 @@
$s_attachments = "attachment(s)";
$s_attachment_alt = "A";
+
+# PHPMailer
+$s_phpmailer_language = 'it';
?>
Index: lang/strings_portuguese_brazil.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_portuguese_brazil.txt,v
retrieving revision 1.53
diff -u -r1.53 strings_portuguese_brazil.txt
--- lang/strings_portuguese_brazil.txt 24 Aug 2003 10:02:33 -0000 1.53
+++ lang/strings_portuguese_brazil.txt 31 Aug 2003 10:30:30 -0000
@@ -861,4 +861,7 @@
$s_attachments = "attachment(s)";
$s_attachment_alt = "A";
+
+# PHPMailer
+$s_phpmailer_language = 'br';
?>
Index: lang/strings_portuguese_standard.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_portuguese_standard.txt,v
retrieving revision 1.52
diff -u -r1.52 strings_portuguese_standard.txt
--- lang/strings_portuguese_standard.txt 24 Aug 2003 10:02:33 -0000 1.52
+++ lang/strings_portuguese_standard.txt 31 Aug 2003 10:30:32 -0000
@@ -860,4 +860,7 @@
$s_attachments = "attachment(s)";
$s_attachment_alt = "A";
+
+# PHPMailer
+$s_phpmailer_language = 'br';
?>
| ||||
|
MantisBT: master be88ae3c 2003-08-31 07:32 Details Diff |
Fix 0003333: Support PHPMailer v1.7x M core/email_api.php - Support method SetLanguage() introduced in PHPMailer v1.7x M lang/strings_english.txt M lang/strings_german.txt M lang/strings_italian.txt M lang/strings_portuguese_brazil.txt M lang/strings_portuguese_standard.txt - Added PHPMailer language id. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2260 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0003333 |
|
| mod - lang/strings_english.txt | Diff File | ||
| mod - lang/strings_portuguese_standard.txt | Diff File | ||
| mod - lang/strings_italian.txt | Diff File | ||
| mod - lang/strings_portuguese_brazil.txt | Diff File | ||
| mod - doc/ChangeLog | Diff File | ||
| mod - core/email_api.php | Diff File | ||
| mod - lang/strings_german.txt | Diff File | ||