From a31be56f425f0ce5fe6d1bb217f9ad27ac0938c9 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 26 Feb 2012 20:34:30 +0530 Subject: [PATCH] Wrapping error string in translator function. --- lib/Cake/View/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 5566e72d9..a12209858 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -422,7 +422,7 @@ class View extends Object { $file = 'Elements' . DS . $name . $this->ext; if (Configure::read('debug') > 0) { - return "Element Not Found: " . $file; + return __d('cake_dev', 'Element Not Found: %s', $file); } }