Skip to content

Commit

Permalink
translation changes in the cache folder
Browse files Browse the repository at this point in the history
	modified:   lib/Cake/Network/Http/HttpResponse.php
  • Loading branch information
AD7six committed Mar 12, 2011
1 parent dd40e7d commit d7f275d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Cache/Cache.php
Expand Up @@ -133,7 +133,7 @@ protected static function _buildEngine($name) {
}
$cacheClass = $class . 'Engine';
if (!is_subclass_of($cacheClass, 'CacheEngine')) {
throw new CacheException(__('Cache engines must use CacheEngine as a base class.'));
throw new CacheException(__d('cake', 'Cache engines must use CacheEngine as a base class.'));
}
self::$_engines[$name] = new $cacheClass();
if (self::$_engines[$name]->init($config)) {
Expand Down Expand Up @@ -273,7 +273,7 @@ public static function write($key, $value, $config = 'default') {
self::set(null, $config);
if ($success === false && $value !== '') {
trigger_error(
__("%s cache was unable to write '%s' to cache", $config, $key),
__d('cake', "%s cache was unable to write '%s' to cache", $config, $key),
E_USER_WARNING
);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Cache/Engine/FileEngine.php
Expand Up @@ -250,7 +250,7 @@ public function clear($check) {
* @throws CacheException
*/
public function decrement($key, $offset = 1) {
throw new CacheException(__('Files cannot be atomically decremented.'));
throw new CacheException(__d('cake', 'Files cannot be atomically decremented.'));
}

/**
Expand All @@ -260,7 +260,7 @@ public function decrement($key, $offset = 1) {
* @throws CacheException
*/
public function increment($key, $offset = 1) {
throw new CacheException(__('Files cannot be atomically incremented.'));
throw new CacheException(__d('cake', 'Files cannot be atomically incremented.'));
}

/**
Expand Down Expand Up @@ -296,7 +296,7 @@ protected function _active() {
$dir = new SplFileInfo($this->settings['path']);
if ($this->_init && !($dir->isDir() && $dir->isWritable())) {
$this->_init = false;
trigger_error(__('%s is not writable', $this->settings['path']), E_USER_WARNING);
trigger_error(__d('cake', '%s is not writable', $this->settings['path']), E_USER_WARNING);
return false;
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Cache/Engine/MemcacheEngine.php
Expand Up @@ -153,7 +153,7 @@ public function read($key) {
public function increment($key, $offset = 1) {
if ($this->settings['compress']) {
throw new CacheException(
__('Method increment() not implemented for compressed cache in %s', __CLASS__)
__d('cake', 'Method increment() not implemented for compressed cache in %s', __CLASS__)
);
}
return $this->_Memcache->increment($key, $offset);
Expand All @@ -171,7 +171,7 @@ public function increment($key, $offset = 1) {
public function decrement($key, $offset = 1) {
if ($this->settings['compress']) {
throw new CacheException(
__('Method decrement() not implemented for compressed cache in %s', __CLASS__)
__d('cake', 'Method decrement() not implemented for compressed cache in %s', __CLASS__)
);
}
return $this->_Memcache->decrement($key, $offset);
Expand Down

0 comments on commit d7f275d

Please sign in to comment.