From d7f16816e6e16bbb36c1aeadf2b9106a64678195 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 18 Apr 2010 00:45:45 -0400 Subject: [PATCH] Adding translation to exceptions in FileEngine. --- cake/libs/cache/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/cache/file.php b/cake/libs/cache/file.php index 23fe3490a29..0476f987240 100644 --- a/cake/libs/cache/file.php +++ b/cake/libs/cache/file.php @@ -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.')); } /** @@ -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.')); } /**