fixing translation domain to cake_dev

This commit is contained in:
Jorge González 2012-07-25 19:20:30 +01:00
parent f9f380d401
commit 7418be04d3

View file

@ -310,7 +310,7 @@ class CakeSocket {
*/ */
public function enableCrypto($type, $clientOrServer = 'client', $enable = true) { public function enableCrypto($type, $clientOrServer = 'client', $enable = true) {
if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) { if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) {
throw new InvalidArgumentException(__('Invalid encryption scheme chosen')); throw new InvalidArgumentException(__d('cake_dev', 'Invalid encryption scheme chosen'));
} }
$enableCryptoResult = false; $enableCryptoResult = false;
try { try {
@ -323,7 +323,7 @@ class CakeSocket {
$this->encrypted = $enable; $this->encrypted = $enable;
return true; return true;
} else { } else {
$errorMessage = __('Unable to perform enableCrypto operation on CakeSocket'); $errorMessage = __d('cake_dev', 'Unable to perform enableCrypto operation on CakeSocket');
$this->setLastError(null, $errorMessage); $this->setLastError(null, $errorMessage);
throw new SocketException($errorMessage); throw new SocketException($errorMessage);
} }