Pre-select language based on browser preferences as a fallback.

Hi,

I've made a small tweak for the selection to play nicely with lang auto detection. It might be your original intention as well as the $user_lang variable was unused in the original code? I kept in the last fallback to en_US, though I'm not sure if the code might ever reach that point.

Cheers,
Petr