gettext_i18n_rails patches I18n.locale= so that it changes underscores in locale names (as used in the gettext world) to the dashes that I18n prefers. So for locales that include an underscore the equality test was returning false. Use FastGettext.locale instead to be consistent. Fixes #998.
Switch routing-filter (which takes locale out of the params and puts it in the URL) off by default in model, controller, and helper tests. This means we can supply the locale as a param. Turn it on specifically for a couple of controller tests that test routing, and change other url localization tests into integration tests.
Extract code for setting locales in FastGettext and I18n
Use AlaveteliConfiguration wrapper in test so we can be more specific about the method to be stubbed and avoid side effects.
Add loading of raw emails - test depends on this.
Patch Globalize to compensate for the way gettext_i18n_rails patches 118n.locale in the handling of locales with underscores. Fixes #999.
Use FastGettext.locale, not I18n.locale as the latter will return hyphens, not underscores as we use in our URLs.
Clarify comment.
Move some more config into AlaveteliLocalization so that it can be called outside initialization e.g. in tests.
Prepare the xapian database before running tests that rely on it existing.
Merge branch 'feature/localisation-fixes' into rails-3-develop