ZF-7937: Translate helper doesn't apply "options" if no translator is defined
Description
When no translator is defined,
translate("this is a string %s", $string);
does not work, because it returns the $messageid itself. If no translator is defined, Zend_View_Helper_Translate::translate() should return
vsprintf($messageid, $options) to avoid this problem.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2009-09-23T09:47:00.000+0000
Assigning to Thomas.
Posted by Thomas Weidner (thomas) on 2009-09-23T13:05:23.000+0000
But translate returns the messageid as is, which is expected behaviour.
When you have no option defined you will get a warning with your change which is more problematic than knowing that no translator is attached.
Posted by Thomas Weidner (thomas) on 2009-09-23T14:00:36.000+0000
Changed from bug to improvement
Posted by Thomas Weidner (thomas) on 2009-09-23T14:01:24.000+0000
Feature implemented with r18387