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 combine two fields in one using "Rewrite the output of this field" feature in the fields list.
Here's rewrite:
[name_i18n]
[description_i18n]
where
[description_i18n] == Taxonomy term: Term description (translated)
[name_i18n] == Taxonomy term: Name (translated)
Translated term description is displayed in original language, not in translated language.
Taxonomy translation mode is set to Localize.
Comment | File | Size | Author |
---|---|---|---|
#3 | i18nviews-translate-term-desciption-1228002.patch | 570 bytes | sunfire-design |
Comments
Comment #1
miro_dietikerduplicate of
#346028: Translate taxonomy term names in Views
term translation generally needs work ... no further reports. Will you work on it or support work?
Comment #2
skolesnyk CreditAttribution: skolesnyk commentedMiro, initially I thought the problem was with Internalization Taxonomy, because otherwise why would term name was displayed in correct language while its description only in original.
I'll look at the issue that you suggested, but I'm not up to the skill level to work on it.
Comment #3
sunfire-design CreditAttribution: sunfire-design commentedProblem should be solved with following patch
Comment #4
romansta CreditAttribution: romansta commentedPatch works for me.
Comment #5
jdanthinne CreditAttribution: jdanthinne commentedWorking for me too.
Comment #6
wzoom CreditAttribution: wzoom commentedPatch works. Please push it to the project git. Thank you.
Comment #7
sahuni CreditAttribution: sahuni commentedOK for me too.
Comment #8
webflo CreditAttribution: webflo commentedCommit 2e1a188 on 7.x-3.x. Thanks!
Comment #10
doublejosh CreditAttribution: doublejosh commentedTerm description (translated) is still just in source language when shown as a field.
Comment #11
doublejosh CreditAttribution: doublejosh commentedAlso rendered term entity should be available as translated.
Comment #12
knalstaaf CreditAttribution: knalstaaf commentedStill breaks when there are no nodes assigned to it?
Edit: there was an unnecessary filter criterion (content type) obstructing the results. Solved.