|
|
@@ -577,7 +577,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
}
|
|
|
|
|
|
$locale = (string) $locale;
|
|
|
- if (isset($this->_translate[$locale][$messageId])) {
|
|
|
+ if ((is_string($messageId) || is_int($messageId)) && isset($this->_translate[$locale][$messageId])) {
|
|
|
// return original translation
|
|
|
if ($plural === null) {
|
|
|
return $this->_translate[$locale][$messageId];
|
|
|
@@ -591,7 +591,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
// faster than creating a new locale and separate the leading part
|
|
|
$locale = substr($locale, 0, -strlen(strrchr($locale, '_')));
|
|
|
|
|
|
- if (isset($this->_translate[$locale][$messageId])) {
|
|
|
+ if ((is_string($messageId) || is_int($messageId)) && isset($this->_translate[$locale][$messageId])) {
|
|
|
// return regionless translation (en_US -> en)
|
|
|
if ($plural === null) {
|
|
|
return $this->_translate[$locale][$messageId];
|