Skip to content

Commit

Permalink
Adding translation to exceptions in FileEngine.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 18, 2010
1 parent a886e13 commit d7f1681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cache/file.php
Expand Up @@ -234,7 +234,7 @@ public function clear($check) {
* @throws BadMethodCallException
*/
public function decrement($key, $offset = 1) {
throw new BadMethodCallException('Files cannot be atomically decremented.');
throw new BadMethodCallException(__('Files cannot be atomically decremented.'));
}

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

/**
Expand Down

0 comments on commit d7f1681

Please sign in to comment.