diff --git a/language/phpmailer.lang-es.php b/language/phpmailer.lang-es.php index 35ce5b8e..c845d129 100644 --- a/language/phpmailer.lang-es.php +++ b/language/phpmailer.lang-es.php @@ -35,3 +35,4 @@ $PHPMAILER_LANG['smtp_detail'] = 'Detalle: '; $PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; $PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; $PHPMAILER_LANG['imap_recommended'] = 'No se recomienda usar el analizador de direcciones simplificado. Instala la extensión IMAP de PHP para un análisis RFC822 más completo.'; +$PHPMAILER_LANG['deprecated_argument'] = 'El argumento $deprecatedArg ha quedado obsoleto'; diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 7a0e750a..16f079ad 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -1246,7 +1246,7 @@ class PHPMailer public static function parseAddresses($addrstr, $deprecatedArg = null, $charset = self::CHARSET_ISO88591) { if ($deprecatedArg !== null) { - trigger_error("Argument \$deprecatedArg is deprecated", E_USER_DEPRECATED); + trigger_error(self::lang('deprecated_argument'), E_USER_DEPRECATED); } $addresses = []; if (function_exists('imap_rfc822_parse_adrlist')) { @@ -2478,6 +2478,7 @@ class PHPMailer 'no_smtputf8' => 'Server does not support SMTPUTF8 needed to send to Unicode addresses', 'imap_recommended' => 'Using simplified address parser is not recommended. ' . 'Install the PHP IMAP extension for full RFC822 parsing.', + 'deprecated_argument' => 'Argument $deprecatedArg is deprecated', ]; if (empty($lang_path)) { //Calculate an absolute path so it can work if CWD is not here