Description

After revision 21661, custom Translate Adapters are not being executed. Instead, a notice like:
Notice: The language 'en' has to be added before it can be used. in /Path/to/library/Zend/Translate/Adapter.php on line 394
is displayed.
Reverting changes from the revision fixes the bug, and has the Adapter working as before.

Comments

Posted by Thomas Weidner (thomas) on 2010-04-06T11:04:03.000+0000

Sorry, "but do not work" is not enough for reproduction.
What are you doing, what are you calling, how does your adapter look like.

Note:
Language notices can be switched off... they are no failure, they are wished and available since 1.8 or earlier.

Posted by Dan Osipov (danospv) on 2010-04-06T11:23:00.000+0000

Notice is not an issue in itself, but the Adapter is not executed. Here is the Adapter:
<?php
class MyNamespace_Adapter extends Zend_Translate_Adapter
{
private $_data = array();