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
roottoken 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 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 commentedHere's a rerolled patch. Patch doesn't apply on latest version.
Comment #6
berdirCommitted, thanks.