Translate argument title

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by shushu on February 20, 2009 at 1:18pm

When using Term argument the handler is views_handler_argument_string.
There, the title() is not being translated.
It is a very small fix to make it work, but of course "hacking" the handler is probably not a good idea.

What do you think should be the "right" solution ?
Create a new handler - views_handler_argument_translated_string - won't be enough, since I will need to change taxonomy.views.inc to point to the new handler...

Thanks,
Shushu

Comments

You can override taxonomy fields handlers

Posted by NickSI on March 6, 2009 at 7:55pm

You can use to hook_views_data_alter(&$data) in order to change view fields definition provided by other modules. Instead of adding completly new field to existing table definition (as it is shown in most examples) you can just replace handlers for already declared fields.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /