Detecting user language

There’s a plugin for this that works well. It needs to be updated to work with the new plugin API. I can do that later today.