Closed (fixed)
Project:
Language Switcher Dropdown
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2011 at 02:23 UTC
Updated:
22 May 2012 at 10:40 UTC
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
Comment #1
rnyberg commented+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.
Comment #2
rnyberg commentedI 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.
Comment #3
manfer commentedAdded 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.
Comment #4
manfer commentedNeeds backport to 6.x-1.x version
Comment #5
manfer commentedBackported and pushed to development 6.x-1.x version.