Swedish? meta just showed me the UI in Swedish

OK this is fiendish to fix and I am not sure what to do:

Trivially we can add env['HTTP_ACCEPT_LANGUAGE'] to:

Trouble is that our anonymous cache will automatically become much less efficient, every permutation out there of accept language will force a new entry in the cache.

The anon cache middleware is VERY early in the stack, at that point we don’t even have safe access to Site Settings, so we can’t even figure out if this feature is enabled.

So now, the existence of this feature is forcing us to do extra work for every anon request. Some options:

  1. Move enabling and disabling into to GlobalSetting, then people must opt for this extra work on every request.

  2. Disable the feature for anon (simplest but not fun)

  3. Build a system for reaching into SiteSettings when there is no access to database in a multisite scenario (complicated, but doable)

  4. Just shove the accpet header and deal with a terrible anon cache … mine is HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,he;q=0.6 very few have this.

Only 2) is easy, so @codinghorror we need to decide what amount of effort we need to invest here.

I estimate its half a day to a day to get 1 or 3 to work perfectly.

「いいね!」 5