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.
Maybe am I missing something but I can't get taxonomy terms translations to work in custom views. It works well with drupal core, but in my views, these are only shown in english (default) language.
Thanks.
Drupal core: 7.14
i18n: 7.x-1.5
entity_translation: 7.x-1.0-alpha2
views 7.x-3.3
Comments
Comment #1
heretic381 CreditAttribution: heretic381 commentedFinally I wound a workaround for this.
Taxonomy terms are correctly translated in views. After days of looking for any solution it came to my mind that there must be something similar to the node title which comes with two instances(fields) in views. And that was the case. There's two different name fields for taxonomy terms. So we must use both, rewriting the output of the core taxonomy term field with the ET one. Rewriting is needed if user want to preserve the taxonomy link, which is the case most of the time.
IMHO, an effort in writing well detailed documentation is necessary. This would probably save a lot of time to all site builders. Presuming developers are already overwhelmed, some co-maintainers could be in charge of it.
Comment #2
plachWell, currenlty there is no actual co-maintainer and, yes, as are you saying it's really hard to maintain Title and Entity translation together with core work. I think you've done a godd job in researching and submitting a solution, what about putting your experience together so that we can provide a more useful documentation to new users?
Comment #3
plachAlso, I guess this is fixed.
Comment #4
heretic381 CreditAttribution: heretic381 commentedYes, it's fixed.
I'll try to summarize my drupal translation experience, especially ET and Title module. There's really lot of things to write about, and I've probably already forgot lot of staff done on my site during last two months.
Do you mean a sort of article?
Comment #5
plachWell, you may write a tutorial on your blog or create a new handbook page with your site recipe.
Comment #6
heretic381 CreditAttribution: heretic381 commentedOk, keep in touch.
Comment #7.0
(not verified) CreditAttribution: commentedsystem info
Comment #8
MXTSorry to reopen this: I would like to know if the mentioned documentation has been written at the end?
I'm having the same issue in obtaining translated term names (with entity translation and title module) in views.
I've partially found a solution in this way:
Result: term name is correctly shown translated in views result (YEAH!) but there is a issue: only and only one term is retrieved per node, regardless of you have chosen more than one vocabulary in the relationship configuration.
What is funny is that the only term showed belongs randomly to one or another vocabulary.
I think this is a bug/inconsistency: If I choose more vocabularies in views relationship configuration, then ALL terms of all chosen vocabularies have to be shown in the related field retrieved in views.
I think a momentary workaround could be the following: add as many relationships for each vocabulary, and then add a "term name" field for each relationship/vocabulary.
What do you think about that guys? Should I open a bug issue for this in views issue queue?
Comment #9
ehsankhfr CreditAttribution: ehsankhfr commentedCheck the WillHall's comment:
https://www.drupal.org/node/1062748#comment-4096734
Comment #10
pinkonomy CreditAttribution: pinkonomy commentedWhat about if the view has been created using the Search api?There is no such field to add to the view.Can someone help me?
thanks
Comment #11
pinkonomy CreditAttribution: pinkonomy commentedSome help please:I have added the taxonomy term name and I tried to rewrite it.However I cannot see the other field from Entity translation to rewrite.What am I missing?thanks