Correctly choose language of generated codelists