UnionOfRAD/lithium — pull request #400 by greut (2012-03-24 17:12:47+00:00)
Title: Locale::preferred tests (from real HTTP headers) and fix.

For the details, read #386

It adds tests using real Accept-Language headers our website got that used to throw exceptions. And those tests are all green since this branch also improved the regular expression that keep the good preferred languages from the bad ones.

I've rebased it recently, ping me if it needs to be fresher.

Cheers,