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.

CommentFileSizeAuthor
views-base.inc_.patch784 bytes20th

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to 2.x and 3.x branches. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.