(domain, new_plan_version)
All Reminder rules utilizing "survey" will be deactivated.
All Reminder rules utilizing "survey" will be deactivated.
All Reminder rules utilizing survey will be deactivated .
def response_inbound_sms(domain, new_plan_version):
        """
        All Reminder rules utilizing "survey" will be deactivated.
        """
        num_survey = (
            len(_get_active_immediate_broadcasts(domain, survey_only=True)) +
            len(_get_active_scheduled_broadcasts(domain, survey_only=True)) +
            len(_get_active_scheduling_rules(domain, survey_only=True))
        )
        if num_survey > 0:
            return _fmt_alert(
                ungettext(
                    "You have %(num_active)d active Reminder Rule or Broadcast which uses a Survey. "
                    "Selecting this plan will deactivate it.",
                    "You have %(num_active)d active Reminder Rules and Broadcasts which use a Survey. "
                    "Selecting this plan will deactivate them.",
                    num_survey
                ) % {
                    'num_active': num_survey,
                }
            )
def response_inbound_sms ( domain , new_plan_version ) : num_survey = ( len ( _get_active_immediate_broadcasts ( domain , survey_only = True ) ) + len ( _get_active_scheduled_broadcasts ( domain , survey_only = True ) ) + len ( _get_active_scheduling_rules ( domain , survey_only = True ) ) ) if num_survey > 0 : return _fmt_alert ( ungettext ( "You have %(num_active)d active Reminder Rule or Broadcast which uses a Survey. " "Selecting this plan will deactivate it." , "You have %(num_active)d active Reminder Rules and Broadcasts which use a Survey. " "Selecting this plan will deactivate them." , num_survey ) % { 'num_active' : num_survey , } )