<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,7 +29,7 @@ class ValidationHelper extends Helper {
   var $whitelist = false;
 
   function bind($modelNames, $options=array()) {
-    $defaultOptions = array('form' =&gt; 'form', 'inline' =&gt; true, 'messageId' =&gt; null, 'root' =&gt; Router::url('/'), 'watch' =&gt; array());
+    $defaultOptions = array('form' =&gt; 'form', 'inline' =&gt; true, 'root' =&gt; Router::url('/'), 'watch' =&gt; array());
     $options = am($defaultOptions, $options);
     $pluginOptions = array_intersect_key($options, array('messageId' =&gt; true, 'root' =&gt; true, 'watch' =&gt; true));
 
@@ -63,10 +63,15 @@ class ValidationHelper extends Helper {
           }
 
           if (!isset($validator['message'])) {
-            $validator['message'] = sprintf('%s %s',
-                                            __('There was a problem with the field', true),
-                                            Inflector::humanize($field)
-                                           );
+						$message = sprintf(__($key, true), __($field, true));
+						if($key != $message) {
+							$validator['message'] = $message;
+						} else {
+							$validator['message'] = sprintf('%s %s',
+																							__('There was a problem with the field', true),
+																							Inflector::humanize($field)
+																						 );
+						}
           }
 
           if (!empty($validator['rule'])) {</diff>
      <filename>views/helpers/validation.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af33da75a8a631176831929b95dfcd9b38a207c4</id>
    </parent>
  </parents>
  <author>
    <name>mcurry</name>
    <email>matt@pseudocoder.com</email>
  </author>
  <url>http://github.com/mcurry/js_validate/commit/ff215386d4c91f5afbea083062669adb8a0f2689</url>
  <id>ff215386d4c91f5afbea083062669adb8a0f2689</id>
  <committed-date>2009-07-17T22:02:25-07:00</committed-date>
  <authored-date>2009-07-17T22:02:25-07:00</authored-date>
  <message>better translation of messages</message>
  <tree>d474da8915b252c6404770ffa582d307c112a5f2</tree>
  <committer>
    <name>mcurry</name>
    <email>matt@pseudocoder.com</email>
  </committer>
</commit>
