mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
translation changes in the log dir
This commit is contained in:
parent
afc5cd4277
commit
f7e2bb1021
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue