I use the standard taxonomy term view to list all nodes associated to a taxonomy term. Taxonomy is i18n localized (same terms for all language but terms are translated)
At the top of the view the current taxonomy term is displayed as the title. But the title is not translated. It does not come from the taxonomy config since the term is translated in other pages.
The title is generated by the "Override title" option in the "Has taxonomy term ID (with depth)" contextual filter where it takes the option %1 from the URL (see capture attached)
How can I translate the taxonomy term so that the title is displayed in the appropriate language?
Comment | File | Size | Author |
---|---|---|---|
#3 | issue-1541924-views-validation-criteria-2.png | 32.42 KB | lmeurs |
#1 | issue-1541924-views-validataion-criteria.jpg | 284.57 KB | webflo |
HasTaxonomyTermId.PNG | 6.42 KB | zylootino |
Comments
Comment #1
webflo CreditAttribution: webflo commentedYou need to add an validation criteria. Look at the attached screenshot or import the attached example view.
Comment #3
lmeurs CreditAttribution: lmeurs commentedI had the same problem with the term's title not being localized on a term page.
In "Views > Advanced > Contextual filters > Content: Has taxonomy term ID (with depth)" I can select the validator "Taxonomy term (i18n)", but the filter value type select does not offer "Term ID" (see attached screenshot). When I change the validator to "Taxonomy term", the filter value type "Term ID" appears.
This happened with both my own view as with the exported view from #1. I'm using i18nviews 7.x-3.x-dev and Views 7.x-3.3.
Does anyone have a clue why the "Term ID" options does not appear for validator "Taxonomy term (i18n)"? Thanks in advance!
Comment #4
JurgenR CreditAttribution: JurgenR commentedWorking fine.
Comment #5
marcoka CreditAttribution: marcoka commentedworks just great!
Comment #6
nachenko CreditAttribution: nachenko commentedNot working for me, but what its really pissing me off is that it works as expected in the preview box of the View UI, but not in the real view. I tried using the default theme, in case my theme has a bug, but it also happens there. It translates neither the page.tpl title nor the window title.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commented[solved]
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #10
knalstaaf CreditAttribution: knalstaaf commented#3 works fine, thank you.