This is extreme edge case.

I have an English node and a translated French node. I also have German as a language, but this particular node is not translated. If I click on French switch it goes to the French page fine. But when I click on German it keeps it on the French page despite the fact English is the default language. The Language switch should do the lookup to figure out what the default language node is when a translation cannot be found. Make sense. Extreme edge, since people are unlikely to do a lot of switching around.

Comments

Roberto Gerola’s picture

What languages have you selected for this user under his preferences
Noes locales section ?
Remove the languages.

pearcec’s picture

Actually no one. This is an anonymous user. And the languages are set to empty in the global config.

Roberto Gerola’s picture

Sorry, I've misunderstood your request.

> The Language switch should do the lookup to figure out what the default language node is when a translation cannot be found
Ok. I agree.
The current rule is not to translate if no translation is available, but we can change it.

Roberto Gerola’s picture

Category: bug » feature
sun’s picture

Version: 5.x-1.6 » 5.x-2.x-dev

Please update to the new Localizer version 2.x. I think this has been fixed. It would be nice if you could confirm this.

sun’s picture

Title: Switch Block doesn't choose default language node if on a translated node. » Display default language when switching language and no translation exists

Better title. FYI: This hasn't been fixed yet.

ablivio’s picture

Title: Display default language when switching language and no translation exists » Display another language when switching language and no translation exists
Priority: Minor » Normal

Maybe a more general idea would be the following: if there is no translation of a node in the currently selected language, another version will be displayed instead, according to a sorted language list.

Suppose that node1 is (FR,IT), node2 is (FR,UK) and node3 is (IT,UK). If the selected language is IT and the language list is (UK, IT, FR), the actually displayed versions will be node1/IT, node2/UK, node3/IT.

ablivio’s picture

See discussion here: http://drupal.org/node/149175