Added language detection

if not manually changed in the settings by the user