Skip to content
This repository
Browse code

Wrapping error string in translator function.

  • Loading branch information...
commit a31be56f425f0ce5fe6d1bb217f9ad27ac0938c9 1 parent 7665f36
ADmad authored February 26, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Cake/View/View.php
2  lib/Cake/View/View.php
@@ -422,7 +422,7 @@ public function element($name, $data = array(), $options = array()) {
422 422
 		$file = 'Elements' . DS . $name . $this->ext;
423 423
 
424 424
 		if (Configure::read('debug') > 0) {
425  
-			return "Element Not Found: " . $file;
  425
+			return __d('cake_dev', 'Element Not Found: %s', $file);
426 426
 		}
427 427
 	}
428 428
 

0 notes on commit a31be56

Please sign in to comment.
Something went wrong with that request. Please try again.