Categorias

Increase your website traffic with Attracta.com

Para traducir los terminos que salen en un filtro de la vista hace falta hook y a lo mejor aplicarlo a un filtro especifico utilizando el el    
if($info['operator'] == "tid_op"){
 
Se puede poner en el template.php del theme
<?php
/**
* Default theme function for all filter forms.
*/
function matteportalbcn_preprocess_views_exposed_form(&$vars) {
  $form = &$vars['form'];

  foreach ($form['#info'] as $id => $info) {
      if($info['operator'] == "tid_op"){
        $widget = new stdClass;
        // set up defaults so that there's always something there.
        $widget->label = $widget->operator = $widget->widget = NULL;
   
        $widget->id = $form[$info['value']]['#id'];
        if (!empty($info['label'])) {
          $widget->label = $info['label'];
        }
        if (!empty($info['operator'])) {
          $widget->operator = drupal_render($form[$info['operator']]);
        }
        $options = array();
        foreach($form[$info['value']]['#options'] as $key=>$option) {
            $options[$key]=tt('taxonomy:term:'. $key .':name', $option);  
        }
       unset($form[$info['value']]['#printed']);
       $form[$info['value']]['#options'] = $options;
   
        $widget->widget = drupal_render($form[$info['value']]);
        $vars['widgets'][$id] = $widget;
      }
  }

}

 ?>