New setLanguage function