@property
    def available_languages(self):
        """
        When editing a reminder, add in any languages that are used by the
        reminder but that are not in the result from
        CreateScheduledReminderView's available_languages property.

        This is needed to be backwards-compatible with reminders created
        with the old ui that would let you specify any language, regardless
        of whether it was in the domain's list of languages or not.
        """
        result = super(EditScheduledReminderView, self).available_languages
        handler = self.reminder_handler
        for event in handler.events:
            if event.message:
                for (lang, text) in event.message.items():
                    if lang not in result:
                        result.append(lang)
        return result
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reminders/views.py/EditScheduledReminderView.available_languages/original