Update all the _( to dgettext ("domframework"
Update locales git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5271 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
27
smtp.php
27
smtp.php
@@ -79,8 +79,8 @@ class smtp
|
||||
{
|
||||
if ($errstr === "" && $php_errormsg !== "")
|
||||
$errstr = $php_errormsg;
|
||||
throw new \Exception (sprintf (_("Can't connect to SMTP server : %s"),
|
||||
$errstr), 500);
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
"Can't connect to SMTP server : %s"), $errstr), 500);
|
||||
}
|
||||
stream_set_timeout ($this->smtpStream, $this->timeout);
|
||||
// Wait for banner
|
||||
@@ -103,14 +103,15 @@ class smtp
|
||||
if (@stream_socket_enable_crypto ($this->smtpStream, true,
|
||||
STREAM_CRYPTO_METHOD_TLS_CLIENT) ===
|
||||
false)
|
||||
throw new \Exception (sprintf (_("Can't activate STARTTLS %s"),
|
||||
strstr ($php_errormsg, ": ")), 500);
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
"Can't activate STARTTLS %s"), strstr ($php_errormsg, ": ")), 500);
|
||||
ini_set('track_errors', 0);
|
||||
$this->debug ("STARTTLS ACTIVATED\n");
|
||||
}
|
||||
}
|
||||
elseif ($this->starttls === "encrypt")
|
||||
throw new \Exception (_("Server doesn't supports STARTTLS"), 500);
|
||||
throw new \Exception (dgettext("domframework",
|
||||
"Server doesn't supports STARTTLS"), 500);
|
||||
|
||||
if ($this->user !== null && $this->password !== null)
|
||||
{
|
||||
@@ -132,8 +133,8 @@ class smtp
|
||||
}
|
||||
else
|
||||
throw new \Exception (
|
||||
_("No authentication method available for the server"),
|
||||
500);
|
||||
dgettext("domframework",
|
||||
"No authentication method available for the server"), 500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,8 +169,8 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
_("Can't send email : not connected to SMTP server"),
|
||||
500);
|
||||
dgettext("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$from = $this->cleanMail ($from);
|
||||
if (is_string ($to))
|
||||
$to = explode (",", $to);
|
||||
@@ -198,8 +199,8 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
_("Can't send email : not connected to SMTP server"),
|
||||
500);
|
||||
dgettext("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$this->putLine ("QUIT\r\n");
|
||||
fclose ($this->smtpStream);
|
||||
}
|
||||
@@ -210,8 +211,8 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
_("Can't send email : not connected to SMTP server"),
|
||||
500);
|
||||
dgettext("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$this->putLine ("RSET\r\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user