Detecting user language

This has come up before: