def __labels(known_labels, trans, labels):
    """Convert list of label names to label dictionaries with all info.
    """
    return {
        lbl: {
            "title": trans.gettext(known_labels[lbl]['title']),
            "description": trans.gettext(known_labels[lbl]['description']),
            "severity": known_labels[lbl].get('severity', "primary"),
        } for lbl in labels if lbl in known_labels.keys()
    }