Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2009 at 01:31 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
hass commentedComment #2
hass commentedComment #3
udig commentedHi,
I noticed the switcher menu is built using hook_translation_link_alter. In order to force the menu to include all enabled languages all the time and present the homepage for the non existing pages, I used the below override:
Not sure it's the No. 1 correct way of doing it but it works.
Comment #4
ressaI actually like that language switcher links to untranslated pages disappear, and would like to hide them altogether.
Or maybe include a setting somewhere, to either hide or show links to non-translated pages, in the language switcher box?
Comment #5
blueblade commentedIt's my personal preference but I think having the language links in the switcher box disappear is confusing to the users. The links in the switcher box should always show and clickable, the user can see the content in whatever language it is written in but the labels etc on the site should be shown in the selected language.
Comment #6
escoles commentedOur client requires that the language switcher not be visible if there is no translation.
In my opinion, it's more confusing for the switcher to appear if there is no translation. Here's the use-case:
That having been said: What's the status of this? Because as I sit here, the switcher is appearing on all pages, regardless of the translation status of the node. (D6.15)
And: This issue seems to be conflating interface translation and content translation.
Comment #7
johannesdr commentedI am having the same issue. But in my case the language links to untranslated nodes should not be shown.
I think the following issues are all related. But it looks like the behavior differs in many cases:
It was fixed for Drupal 7 by adding a 'locale-untranslated' class:
#518364: Nodes with one language don't affect the language switcher block
Perhaps this should be backported to D6?
Comment #8
andrew answer commentedThe correct way how language switcher should work IMHO:
1) do not link any page to itself (English page shouldn't have link to English translation, but should have simple text instead of disappearing menu item) - it confuse users and search engines too.
2) if some page haven't translation yet - don't show link but place simple text instead with title (appear on hover) "you haven't [lang] translation yet". Users will have consistent UI and no 404 page needed (like module translation404 do); search engines mark links which go to 404 page as wrong.
Such way we will have friendly UI for users and bots :)
Comment #9
kououken commentedAh.. already fixed for D7. :) Would like to see a backport to 6 definitely!