plone/plone.app.multilingual — pull request #21 by simonedeponti (2012-10-18 12:06:14+00:00)
Title: New language selector

The new, improved language selector.

The code is not as clean as it could be, because basically LinguaPlone used the language selector to support whatever crazy use case it came across (and some do are pretty crazy).

There might be room for simplification in the whole postpath mess (at some point, I called the whole VirtualHost magic that LinguaPlone did plain crazy and decided not to support it, but there are still code remnants).

Other than that, the basic use cases are supported and tested, and the language selector now does very few, although I had to leave in the whole postpath and query persistence, making it slightly more complicated than a mere iteration upon existing languages.

The tests strive to use real and compelling use cases (for example, the @@search view).