summaryrefslogtreecommitdiffstats
path: root/etc/inc/smtp.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
commit47f12397b3ec7f6fa860d21136a7deca9f6573e8 (patch)
tree2f63de6cc3229518d8704d641ab085d63bfd12da /etc/inc/smtp.inc
parent701a250b6ede4936d1dd677b8e1813a440e90c71 (diff)
downloadpfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.zip
pfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.tar.gz
Fix gettext calls with printf to permit change strings order
Diffstat (limited to 'etc/inc/smtp.inc')
-rw-r--r--etc/inc/smtp.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/smtp.inc b/etc/inc/smtp.inc
index 7276ed8..c33978d 100644
--- a/etc/inc/smtp.inc
+++ b/etc/inc/smtp.inc
@@ -236,7 +236,7 @@ class smtp_class
&& !strcmp(@gethostbyname($this->exclude_address),$ip))
return(sprintf(gettext("domain \"%s\" resolved to an address excluded to be valid"), $domain));
if($this->debug)
- $this->OutputDebug(sprintf(gettext("Connecting to host address \"%s\" port %s..."), $ip, $port));
+ $this->OutputDebug(sprintf(gettext("Connecting to host address \"%1$s\" port %2$s..."), $ip, $port));
if(($this->connection=($this->timeout ? @fsockopen(($this->ssl ? "ssl://" : "").$ip,$port,$errno,$error,$this->timeout) : @fsockopen(($this->ssl ? "ssl://" : "").$ip,$port))))
return("");
$error=($this->timeout ? strval($error) : "??");
@@ -253,7 +253,7 @@ class smtp_class
case "-7":
return(gettext("-7 setvbuf() call failed"));
}
- return(sprintf(gettext("could not connect to the host \"%s\": %s"), $domain, $error));
+ return(sprintf(gettext("could not connect to the host \"%1$s\": %2$s"), $domain, $error));
}
Function SASLAuthenticate($mechanisms, $credentials, &$authenticated, &$mechanism)
@@ -286,7 +286,7 @@ class smtp_class
case SASL_NOMECH:
if(strlen($this->authentication_mechanism))
{
- $this->error=printf(gettext("authenticated mechanism %s may not be used: %s"), $this->authentication_mechanism, $sasl->error);
+ $this->error=printf(gettext("authenticated mechanism %1$s may not be used: %2$s"), $this->authentication_mechanism, $sasl->error);
return(0);
}
break;
OpenPOWER on IntegriCloud