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.
Hello!
There was already lots of translation-friendly work conducted in the module :) I think one of the last missing pieces is the 'root' token for taxonomy term.
Much like #2772673: Provide tokens for referenced entities in the active language., the problem is as following:
- Create a parent term
- Create a child term
- Translate both. Have both source translation be in English and translation in German.
- For German language, request
root
token of the child term and observe the English parent term name in the output, whereas expected would be its German label.
Comment | File | Size | Author |
---|---|---|---|
#4 | rerolled-2957289-4.patch | 1.13 KB | Vidushi Mehta |
| |||
#2 | 2957289-token-term-root-translation-2.patch | 1.13 KB | bucefal91 |
|
Comments
Comment #2
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedHere's the patch that translates root term before putting its label into the token + a test that pin points the issue.
Comment #3
BerdirLooks good but needs a reroll, sorry.
Yay for providing a test, would be even better if you provide a test-only patch (upload that first), that shows that it fails the tests without the fix.
Comment #4
Vidushi Mehta CreditAttribution: Vidushi Mehta at gai Technologies Pvt Ltd commentedHere's a rerolled patch. Patch doesn't apply on latest version.
Comment #6
BerdirCommitted, thanks.