How can I translate the Title of a customized taxonomy term page using the views module?

Problem Description:

I have a bilingual site using the internationalization module. The site is in English and Spanish and has three different taxonomies. Just one of them is multilingual. When looking at any node of my site, I noticed that clicking on any of the taxonomy terms for my multilingual taxonomy would lead me to the page for that taxonomy term, which would list all the nodes that contained the term. The problem then was that the displayed list would include the nodes in both of the languages.

I recently created a customized taxonomy term page using this tutorial: http://www.webbykat.com/2012/04/overriding-default-taxonomy-page-view-dr.... This view solves my problem almost completely because now, if I click on any term of my bilingual taxonomy, the taxonomy term page displays only the entries in the user's current language.

However, the title of the page is always displayed only in the site's default language, which is English. If I switch the language to Spanish the list of entries of that page become also translated to Spanish. However, the title of the taxonomy term page remains in English.

What I've tried:

I noticed that changing the path of the view from "/taxonomy/term/%" to "es/taxonomy/term/%" produces an interesting change: the title of the taxonomy term page displays only in Spanish, regardless of which language the site is in.

I also tried creating a URL alias for the view path in admin/config/search/path. I set up the original URL exactly as in the view path "/taxonomy/term/%" and the alias as "es/"/taxonomy/term/%", and I indicated the alias should be used only in the Spanish version of the site. However, this didn't produce any change, so I delete the alias.

Then, I tried going to Translation Sets at admin/config/regional/i18n_translation/path. Again, I set up the English URL exactly as in the view path "/taxonomy/term/%", and the Spanish URL as "es/taxonomy/term/%". Unfortunately, Drupal returned this error message: The path '/taxonomy/term/%' is either invalid or you do not have access to it.

I am guessing I need to configure my view so that it recognizes the different paths depending on the language. Other possibility would be create a duplicate of the view using the Spanish path, and make sure that Drupal selects either view depending on the language the site is in. In either case, I have no clue how to do this. I am open to suggestions.

Does anybody has any suggestion to translate the title of the taxonomy term page using views?

I am using Drupal 7.37.

Comments

David_Rothstein’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 7.3 » 7.x-3.x-dev
Component: views.module » taxonomy data
Assigned: allanmar » Unassigned

Moving this to the Views issue queue - Views is a contrib module in Drupal 7 (not part of Drupal core).

MustangGB’s picture

Priority: Major » Normal
Issue tags: -views
MustangGB’s picture

Status: Active » Closed (outdated)

Closing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.