Limit autocompletions by language

Created on 29 October 2012, about 12 years ago
Updated 14 January 2024, 10 months ago

I am trying to limit auto completion by language in a multilingual website. I have set language filter on the view to "current language". But, by default, search auto complete invokes /en/autcomplete_nodes as inspected on firebug.

The search setting is set to "current site language".

I have set ID selector to #search-form[action="/:lang_code/search/search_page"] #edit-keys.
But i keep getting only English auto completions on all language search pages if set a language filter on the view.

Where might I be going wrong? The objective is to return auto completions for the current language only.

Also, I had to apply this patch on RC4 (http://drupal.org/files/multi_lang_ID_placeholders.patch) to get the ID selectors to work in a multilingual setting.

Another question is: how to limit autocomps by language on search block whose ID selector does not seem to have any lang_code (#edit-search-block-form--2) ?

Thanks in advance.

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States castfaraway

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States w01f

    I just tried adding the translation filter on the node autocompletion callback view used for search autocomplete and this didn't work (screenshot attached). We're are using the 3.x-dev@dev version of the module on Drupal 10.2.

Production build 0.71.5 2024