/**
* @param string $rule
* @param string $field
* @return string
*/
protected function _getMissingMessage($rule,
$field) { $message =
$this->_defaults
[self::MISSING_MESSAGE
];
if (null
!== ($translator =
$this->
getTranslator())) { if ($translator->
isTranslated(self::MISSING_MESSAGE
)) { $message =
$translator->
translate(self::MISSING_MESSAGE
);
} else { $message =
$translator->
translate($message);
} } $message =
str_replace('%rule%',
$rule,
$message);
$message =
str_replace('%field%',
$field,
$message);
return $message;
}