translation changes in the log dir

This commit is contained in:
AD7six 2011-03-12 20:00:55 +01:00
parent afc5cd4277
commit f7e2bb1021

View file

@ -82,7 +82,7 @@ class CakeLog {
*/ */
public static function config($key, $config) { public static function config($key, $config) {
if (empty($config['engine'])) { if (empty($config['engine'])) {
throw new CakeLogException(__('Missing logger classname')); throw new CakeLogException(__d('cake', 'Missing logger classname'));
} }
$loggerName = $config['engine']; $loggerName = $config['engine'];
unset($config['engine']); unset($config['engine']);
@ -90,7 +90,7 @@ class CakeLog {
$logger = new $className($config); $logger = new $className($config);
if (!$logger instanceof CakeLogInterface) { if (!$logger instanceof CakeLogInterface) {
throw new CakeLogException(sprintf( 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; self::$_streams[$key] = $logger;
@ -109,7 +109,7 @@ class CakeLog {
App::uses($loggerName, $plugin . 'Log/Engine'); App::uses($loggerName, $plugin . 'Log/Engine');
if (!class_exists($loggerName)) { 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; return $loggerName;
} }