When using a grouped filter, the translated text for the default option <Any>is not displayed.

To reproduce:
I translated the text for <Any> in the translation UI, then created an exposed filter. <Any> is still displayed in English, even when accessing the translated version of the view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ptmkenny’s picture

Status: Needs review » Needs work

The last submitted patch, 1: views-2134547-1-any-translation-exposed-filters.patch, failed testing.

ptmkenny’s picture

Issue summary: View changes
FileSize
775 bytes

Sorry, I had some garbage in the first patch.

ptmkenny’s picture

Status: Needs work » Needs review
ptmkenny’s picture

I still have this issue with the newest version (3.12), but the patch still applies cleanly.

Chris Matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 5 year old patch in #3 to views_handler_filter.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.

Checking patch handlers/views_handler_filter.inc...
error: while searching for:
  function group_form(&$form, &$form_state) {
    if (!empty($this->options['group_info']['optional']) && !$this->multiple_exposed_input()) {

      $old_any = $this->options['group_info']['widget'] == 'select' ? '<Any>' : '&lt;Any&gt;';
      $any_label = variable_get('views_exposed_filter_any_label', 'new_any') == 'old_any' ? $old_any : t('- Any -');
      $groups = array('All' => $any_label);
    }

error: patch failed: handlers/views_handler_filter.inc:701
error: handlers/views_handler_filter.inc: patch does not apply
silvi.addweb’s picture

@Chris2, Please find my attached patch, this will apply in views 7.x-3.x-dev. Let me know if you have any further issue regarding it.

Thanks!..

DamienMcKenna’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll

Lets see what the testbot says.