The language drop down uses the core i18n behavior of showing only the translations available for the node being viewed.

Would be nice if there was and option to force the drop down to be consistent for all pages with all translations.

Here's a module that does this for the normal icon based language switcher...
http://drupal.org/project/languageinterface

Suppose it might be good to have an asterisk or something next to the languages that are available for the current piece of content.
But that's probably scope creep for just this feature.

Comments

rnyberg’s picture

+1 for this one. Looking at a node that has been translated to 3 languages (so for example, 7 still to do) will only show those 3 languages in the switcher.

The other language links should still be shown, but take the user to the front page or so.

rnyberg’s picture

I commented out the row 165 in lang_dropdown.module:

// if (!isset($lang_options['href'])) continue;

Now I have all languages in the language switcher even if there is no translation to the given node, and the link seems to take the user to the front page in that case.

manfer’s picture

Version: 6.x-1.2 » 7.x-1.x-dev

Added new option to allow to show all languages in the switcher even if their is not translation to the current node in some languages. For languages with not translation the switcher redirects to homepage.

Pushed to 7.x-1.x development version.

manfer’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Needs backport to 6.x-1.x version

manfer’s picture

Status: Active » Fixed

Backported and pushed to development 6.x-1.x version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.