def generate_text(concept, lang):
    # start with pref- and altlabels
    labels = [concept['pref']]
    if lang == 'fi':
        # we can use the YSA label too
        labels.append(concept['ysapref'])
    if lang == 'sv':
        # we can use the Allars label too
        labels.append(concept['allarspref'])
    if 'alts' in concept:
        labels.append(concept['alts'])