Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.9.3
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Translate
-
Labels:None
Description
As mentioned in the manual the locale "en_US" should downgrade to "en", if "en_US" not exists, but "en" does. This does not work. I have a language file with "de", but if I set my browser to prefer "de_DE" before "de" the Exception "No translation for language "de_DE" available. I looked into Translate/Adapter.php and found something at line 330
if (empty($this->_translate[$locale])) { if (!$this->_options['disableNotices']) { if ($this->_options['log']) { $this->_options['log']->notice("No translation for the language '{$locale}' available."); } else { trigger_error("No translation for the language '{$locale}' available.", E_USER_NOTICE); } } }
If I var_dump() $this->_translate I see, that there is a key "de_DE" with an empty array as valie, which I have never added. I dont know, where it come from, but its quite annoying.
I don't see where the problem should be.
According to manual you can disable the triggered notice with the "disableNotices" option.
Or simply look into the codeline you copied...