Bem-vindo(a) ao PORTAL X-TRAD
PORTAL X-TRAD  
Horários baseados na GMT -2. Agora são 04:09 AM.
 »   PORTAL X-TRAD » XOOPS - Tradução » XOOPS CORE » Xoops Core : Wiki

 
 
LinkBack Article Tools Modos de Exibição
  #1  

Padrão 2.017_lang_xoopsmailerlocal.php

 

XOOPS.ORG V_2.0.17 - Contents

<?php
## Translation Info: X-Trad Traduções Português BR
## Version: Xoops 2.0.17
## Language: Brazilian Portuguese
## Translation team: http://www.x-trad.org/
## 2007-08-25
##
################################################## #############
## Sáb 25 Ago 2007 18:13:48 BRT

/**
* 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;
}
}
?>


*** MESMO ARQUIVO COM TAGS PHP - PARA TRADUÇÃO UTILIZE CÓDIGO ACIMA ***
Código PHP:
<?php
## Translation Info: X-Trad Traduções Português BR
## Version: Xoops 2.0.17
## Language: Brazilian Portuguese
## Translation team: http://www.x-trad.org/
## 2007-08-25
##
###############################################################
## Sáb 25 Ago 2007 18:13:48 BRT

/**
 * 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;
    }
}
?>

« Previous Chapter   XOOPS.ORG V_2.0.17
  Next Chapter »

Contributors:
Created by beduino, 08-09-2007 at 01:24 PM
Last edited by beduino, 08-09-2007 at 01:24 PM
0 Comments , 119 Views
 

Favoritos



Usuários ativos no Tópico: 1 (0 Membros e 1 Visitantes)
 
Article Tools
Modos de Exibição

Regras para Postagens
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não
Trackbacks are Sim
Pingbacks are Sim
Refbacks are Sim


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178