Try to autodetect language at first startup

Closes #581