In the views_object::unpack_options() method if the $value is an array, unpack_options is called recursively. And it also receives the third parameter $definition[$key].
According to the documentation to the views_handler_filter::option_definition() method all sub-elements should be put into a 'contains' array. And this is what should be passed to unpack_options().
Currently because of this issue some strings in views are not properly marked as translatable. For example, "Search for a group by name" string found in a default view in og_views module is not run throw t() function and cannot be translated at all.
The patch makes it appear on Translate interface page.
| Comment | File | Size | Author |
|---|---|---|---|
| views-base.inc_.patch | 784 bytes | 20th |
Comments
Comment #1
merlinofchaos commentedCommitted to 2.x and 3.x branches. Thanks!