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.
I am very novice with Drupal 8 multilingual. I have made Taxonomy terms translatable with advice http://drupal.stackexchange.com/questions/211679/drupal-8-make-taxonomy-...
But my Taxonomy menu block displays only default language terms and does not translate menu items.
I think Views will help me, but what to do with Taxonomy Menu module in multilingual Drupal 8 ?
Comment | File | Size | Author |
---|---|---|---|
#2 | 2784947-2_get_translated_name_for_link.patch | 2.86 KB | mErilainen |
|
Comments
Comment #2
mErilainen CreditAttribution: mErilainen at Wunder commentedHere is a patch which uses term's translated value if one exists for the link. Not sure if it's the correct way to do, but seems to work.
Comment #3
Rar9 CreditAttribution: Rar9 commentedThe patch partially works, but the taxonomy Description is still being pulled from the source language.
Comment #4
vegardjo CreditAttribution: vegardjo commentedPatch work for me too! Not sure where Taxonomy menu should use the Taxonomy Description, though? (re: comment from @Rar9)
Comment #5
dstolLet's translate the description as well. Back to needs work.
Comment #6
Rar9 CreditAttribution: Rar9 commentedWill this patch work for the 8.3.3 release as well ?
Comment #7
esclapes CreditAttribution: esclapes as a volunteer commentedI would say this is a duplicate of #2630074: Translation Menu Items partly works.
I just uploaded a patch to that issues including tests. mErilainen thanks for sharing your patch. I think translation in this case should use
getTranslationFromContext
which accounts for fallback language. Maybe somebody here wants to help with the review.Comment #8
mariocantor CreditAttribution: mariocantor as a volunteer commented#2 works like a charm, thanks for your help..
I applied it manually.
Comment #9
Jorgas CreditAttribution: Jorgas commentedmErilainen, thank u very much, it works prefect.
Comment #10
zepner CreditAttribution: zepner at Aten Design Group commentedThis patch appears to have stopped working, anyone else?