hi,

the core taxonomy_autocomplete_validate simply does :

      if ($possibilities = taxonomy_term_load_multiple(array(), array('name' => trim($typed_term), 'vid' => array_keys($vocabularies)))) {
        $term = array_pop($possibilities);
      }

so it doesn't take care of term language at all.

i'll add a patch so that we have i18ntaxonomy_taxonomy_autocomplete_validate to take care of this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

izus’s picture

Status: Active » Needs review
FileSize
3.42 KB

here it is

Status: Needs review » Needs work
izus’s picture

Status: Needs work » Needs review
FileSize
3.42 KB

Status: Needs review » Needs work
izus’s picture

Status: Needs work » Needs review
FileSize
3.39 KB
izus’s picture

Title: Autocomplete taxonomy terms should reference the terms of teh same language as the parent node » Autocomplete taxonomy terms should reference the terms of the same language as the parent node
ogggg’s picture

#5 works for me

izus’s picture

@ogggg can you then please set the status of the issue to "Reviewed & tested by the community", so that maintainers wil look at it
Thanks

ogggg’s picture

Status: Needs review » Reviewed & tested by the community
Cyclodex’s picture

I think this patch is basically for the case of Translate. Different terms will be allowed for each language and they can be translated.
Localize has a different issue, which I am investigating now.

joseph.olstad’s picture

due to testbot changes the original patch needs a reroll

rerolling original patch #5

PieterDC’s picture

Status: Reviewed & tested by the community » Needs work

My colleague Michel tested the patch and confirms it works.
I tested it as well.

As for the code of the patch itself: