setLanguage as a function call