Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, for a taxonomy term with a set language, running
var_dump(entity_language('taxonomy_term', taxonomy_term_load(1)))
returns NULL.
With this patch, it returns the language, as expected.
This solves the problem of pathauto not picking up taxonomy term languages for me.
Comment | File | Size | Author |
---|---|---|---|
#1 | i18n-fix-entity-language-2199559.patch | 657 bytes | Carl Johan |
Comments
Comment #1
Carl Johan CreditAttribution: Carl Johan commentedComment #2
Carl Johan CreditAttribution: Carl Johan commentedComment #3
Carl Johan CreditAttribution: Carl Johan commentedComment #4
Carl Johan CreditAttribution: Carl Johan commentedComment #5
Jose Reyero CreditAttribution: Jose Reyero commentedNice, this may fix some other issues too. Committed, thanks.
Comment #7
kopeboy CreditAttribution: kopeboy commentedWow, this seems SO important!
There are many support and bugs issues on the translation of paths, when this will be included in a stable release please?