Browse Source

Remove translations for development messages

Jan Rio Krause 11 years ago
parent
commit
afa750d243

+ 2 - 2
Lib/EmailLib.php

@@ -430,14 +430,14 @@ class EmailLib extends CakeEmail {
 			}
 			}
 			if (empty($fileInfo['content'])) {
 			if (empty($fileInfo['content'])) {
 				if (!isset($fileInfo['file'])) {
 				if (!isset($fileInfo['file'])) {
-					throw new SocketException(__d('cake_dev', 'File not specified.'));
+					throw new SocketException('File not specified.');
 				}
 				}
 				$fileName = $fileInfo['file'];
 				$fileName = $fileInfo['file'];
 				if (!preg_match('~^https?://~i', $fileInfo['file'])) {
 				if (!preg_match('~^https?://~i', $fileInfo['file'])) {
 					$fileInfo['file'] = realpath($fileInfo['file']);
 					$fileInfo['file'] = realpath($fileInfo['file']);
 				}
 				}
 				if ($fileInfo['file'] === false || !Utility::fileExists($fileInfo['file'])) {
 				if ($fileInfo['file'] === false || !Utility::fileExists($fileInfo['file'])) {
-					throw new SocketException(__d('cake_dev', 'File not found: "%s"', $fileName));
+					throw new SocketException(sprintf('File not found: "%s"', $fileName));
 				}
 				}
 				if (is_int($name)) {
 				if (is_int($name)) {
 					$name = basename($fileInfo['file']);
 					$name = basename($fileInfo['file']);

+ 2 - 2
Lib/Utility/NumberTextLib.php

@@ -1,7 +1,7 @@
 <?php
 <?php
 App::import('Vendor', 'Tools.Soros/Soros');
 App::import('Vendor', 'Tools.Soros/Soros');
 if (!class_exists('Soros')) {
 if (!class_exists('Soros')) {
-	throw new CakeException(__d('dev', 'Vendor class Soros cannot be found'));
+	throw new CakeException('Vendor class Soros cannot be found');
 }
 }
 
 
 /**
 /**
@@ -33,7 +33,7 @@ class NumberTextLib {
 			static::$_dir = CakePlugin::path('Tools') . 'Vendor' . DS . 'Soros' . DS;
 			static::$_dir = CakePlugin::path('Tools') . 'Vendor' . DS . 'Soros' . DS;
 		}
 		}
 		if (!file_exists(static::$_dir . "$lang.sor")) {
 		if (!file_exists(static::$_dir . "$lang.sor")) {
-			throw new CakeException(__d('dev', 'Language file %s.sor not found', $lang));
+			throw new CakeException(sprintf('Language file %s.sor not found', $lang));
 		}
 		}
 		return $lang;
 		return $lang;
 	}
 	}

+ 2 - 2
Model/Behavior/PasswordableBehavior.php

@@ -466,10 +466,10 @@ class PasswordableBehavior extends ModelBehavior {
 		$className = $class . 'PasswordHasher';
 		$className = $class . 'PasswordHasher';
 		App::uses($className, $plugin . 'Controller/Component/Auth');
 		App::uses($className, $plugin . 'Controller/Component/Auth');
 		if (!class_exists($className)) {
 		if (!class_exists($className)) {
-			throw new CakeException(__d('cake_dev', 'Password hasher class "%s" was not found.', $class));
+			throw new CakeException(sprintf('Password hasher class "%s" was not found.', $class));
 		}
 		}
 		if (!is_subclass_of($className, 'AbstractPasswordHasher')) {
 		if (!is_subclass_of($className, 'AbstractPasswordHasher')) {
-			throw new CakeException(__d('cake_dev', 'Password hasher must extend AbstractPasswordHasher class.'));
+			throw new CakeException('Password hasher must extend AbstractPasswordHasher class.');
 		}
 		}
 		return new $className($config);
 		return new $className($config);
 	}
 	}

+ 1 - 1
Vendor/Soros/NumberText.php

@@ -1,7 +1,7 @@
 <?php
 <?php
 App::import('Vendor', 'Tools.Soros/Soros');
 App::import('Vendor', 'Tools.Soros/Soros');
 if (!class_exists('Soros')) {
 if (!class_exists('Soros')) {
-	throw new CakeException(__d('dev', 'Vendor class Soros cannot be found'));
+	throw new CakeException('Vendor class Soros cannot be found');
 }
 }
 /**
 /**
  * Sample classes
  * Sample classes