call the other version of setLanguages.