Fixed language dropdown sometimes not selecting correct language in Firefox.
Fixed language autodetection not working properly.
Language dropdown now shows the language instead of locale. Dirty but better than before :)