|
|
@@ -744,10 +744,10 @@ class Zend_Filter_Input
|
|
|
$message = $this->_defaults[self::MISSING_MESSAGE];
|
|
|
|
|
|
if (null !== ($translator = $this->getTranslator())) {
|
|
|
- if ($translator->isTranslated($message)) {
|
|
|
- $message = $translator->translate($message);
|
|
|
- } else {
|
|
|
+ if ($translator->isTranslated(self::MISSING_MESSAGE)) {
|
|
|
$message = $translator->translate(self::MISSING_MESSAGE);
|
|
|
+ } else {
|
|
|
+ $message = $translator->translate($message);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -764,10 +764,10 @@ class Zend_Filter_Input
|
|
|
$message = $this->_defaults[self::NOT_EMPTY_MESSAGE];
|
|
|
|
|
|
if (null !== ($translator = $this->getTranslator())) {
|
|
|
- if ($translator->isTranslated($message)) {
|
|
|
- $message = $translator->translate($message);
|
|
|
- } else {
|
|
|
+ if ($translator->isTranslated(self::NOT_EMPTY_MESSAGE)) {
|
|
|
$message = $translator->translate(self::NOT_EMPTY_MESSAGE);
|
|
|
+ } else {
|
|
|
+ $message = $translator->translate($message);
|
|
|
}
|
|
|
}
|
|
|
|