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.
On a multilingual site (i18n), if a vocabulary is set to "Localize. Terms are common for all languages, but their name and description may be localized.", views query doesn't show the translated vocabulary name and/or terms but the site default language.
Comments
Comment #1
aristeides CreditAttribution: aristeides commentedPlease ignore, not a views issue.
Comment #2
fuse CreditAttribution: fuse commentedDid you find a solution for this issue? I am having the same problem.
Comment #3
aristeides CreditAttribution: aristeides commentedYes. It actually is NOT an issue, it's just not obvious. :)
When you set your vocabularies to localize a new formatter appears on that view field.
Default formatters are "plain text" and "link".
After localizing the vocabularies there are formatters "plain text (localized)" and "link (localized)".
Comment #4
fuse CreditAttribution: fuse commentedYes, but only when you have a view of "Type: content". I am using a view of "type: term" and you don't have any options to choose the formatter.
So I think this issue still exist and should be solved?
Comment #5
fuse CreditAttribution: fuse commentedChanging the status unless someone can explain how to do this.
Comment #6
dawehnerMove to i18nviews and remove silly tags.
Comment #7
fuse CreditAttribution: fuse commentedCould you explain a bit more? I had i18n views already installed, but that doesn't help, unless I am missing something?
What I have is:
View of taxonomy terms (type: term) with "Taxonomy term: Name" as one of the fields. My taxonomy is set to: "Localize. Terms are common for all languages, but their name and description may be localized" and all terms have been translated, but when I switch language my terms are not translating.
Comment #8
vflirt CreditAttribution: vflirt commentedWhere you select the "Taxonomy term: Name" should be changed, you should select "Taxonomy term: Name (translated)" . This will show the translated name.
Comment #9
fuse CreditAttribution: fuse commentedOk, this does indeed work. Thank you for the feedback.
Changed the status.
Comment #10
alauzon CreditAttribution: alauzon commentedIn which admin page do you do that selection : "Taxonomy term: Name (translated)"?
Comment #11
aristeides CreditAttribution: aristeides commentedit's a views field. When you add a new field, you can choose from many options. Among them there is one called "Taxonomy term: Name (translated)". So instead of adding "Taxonomy term: Name", choose that one instead. At least for me it worked...
Comment #12
alauzon CreditAttribution: alauzon commentedIs it in the uc_catalog view?
Comment #13
alauzon CreditAttribution: alauzon commentedI tried to add a field but "Taxonomy term: Name (translated)" was not listed, only "Taxonomy term: Name" was. What do I need to do?
Comment #14
alauzon CreditAttribution: alauzon commentedHa, I found it. I needed to install i18n_views!
Thank you for your answers, guys.