Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 Jun 2009 at 07:55 UTC
Updated:
9 Jul 2009 at 22:20 UTC
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!