When a taxonomy term is not translated the language switcher still shows a link to the other (untranslated) languages.
I think it should only show links to the translated terms.

How to reproduce:

  1. Set up a website with two languages
  2. Enable the language switcher block
  3. Create a vocabulary with 'Per language terms' translation
  4. Create a term in one language
  5. go to the term page: taxonomy/term/termid. The language switcher has a link to the other language.

This is related to the following issues: http://drupal.org/node/518364 (Drupal 7), http://drupal.org/node/340527
with untranslated nodes.

CommentFileSizeAuthor
#1 i18n_966494.patch1.6 KBjohannesdr

Comments

johannesdr’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

I added a first attempt to patch this.
It fixes my problem. But I guess it is not really a good solution, because it changes the behavior of the i18ntaxonomy_translation_term_tid function. Does anyone have a different solution?

Now it returns the tid of the term that is checked for a translation, when no translation is available.
When no translation is available it unsets the translation link and adds the locale-untranslated class.

jose reyero’s picture

Status: Needs review » Closed (won't fix)

Only critical bug fixes for this version.