magiclabs/alchemy_cms — Issue #74: refactoring pages_helper #language_switches
Author: robinboening
Created: 2011-10-18 01:05:25+00:00
State: open
Labels: discussion needed, refactor

One spec for the language_switcher is set to pending because we need to discuss what it should do.

Example:
We have two public languages and two page trees.
The first page tree is public, the second tree is not!

If we render the language_switcher, we will get one link for the public page tree.
Do we really want to render anything, or do we want to return nil?

I think nil is better, because:

1.) We do so if we have only one public language and one public language is the same as having two public languages but one public page tree.

2.) What can a user do with one link to the actual language? Nothing...

What do you think?