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.
The standard way to have a taxonomy term localized is by using the function i18n_taxonomy_localize_terms().
However, this function does not accept a custom language code for which we want the taxonomy term to be localized, it can only be used for the current language.
Having a langcode as an argument, would give a lot more flexibility to this function.
I will add a patch for this.
Thank you !
Comment | File | Size | Author |
---|---|---|---|
#2 | i18n_taxonomy_localize_terms_langcode_argument-2326329-2.patch | 1.1 KB | Nixou |
#1 | i18n_taxonomy_localize_terms_langcode_argument-2326329-1.patch | 1.1 KB | webfordreams |
Comments
Comment #1
webfordreams CreditAttribution: webfordreams commentedAdding patch.
Comment #2
Nixou CreditAttribution: Nixou at Actency commentedReroll for latest version
Comment #3
joseph.olstadComment #4
joseph.olstadComment #5
joseph.olstadhttps://www.drupal.org/project/i18n/releases/7.x-1.34