Browse Source

translation changes in the log dir

AD7six 15 years ago
parent
commit
f7e2bb1021
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/Cake/Log/CakeLog.php

+ 3 - 3
lib/Cake/Log/CakeLog.php

@@ -82,7 +82,7 @@ class CakeLog {
  */
 	public static function config($key, $config) {
 		if (empty($config['engine'])) {
-			throw new CakeLogException(__('Missing logger classname'));
+			throw new CakeLogException(__d('cake', 'Missing logger classname'));
 		}
 		$loggerName = $config['engine'];
 		unset($config['engine']);
@@ -90,7 +90,7 @@ class CakeLog {
 		$logger = new $className($config);
 		if (!$logger instanceof CakeLogInterface) {
 			throw new CakeLogException(sprintf(
-				__('logger class %s does not implement a write method.'), $loggerName
+				__d('cake', 'logger class %s does not implement a write method.'), $loggerName
 			));
 		}
 		self::$_streams[$key] = $logger;
@@ -109,7 +109,7 @@ class CakeLog {
 
 		App::uses($loggerName, $plugin . 'Log/Engine');
 		if (!class_exists($loggerName)) {
-			throw new CakeLogException(__('Could not load class %s', $loggerName));
+			throw new CakeLogException(__d('cake', 'Could not load class %s', $loggerName));
 		}
 		return $loggerName;
 	}