'Generate the answer notification type and message from the current problem status.
Arguments:
render_notifications (bool): If false the method will return an None for type and message'

def _get_answer_notification(self, render_notifications):

    answer_notification_message = None
    answer_notification_type = None
    if render_notifications:
        progress = self.get_progress()
        id_list = self.lcp.correct_map.keys()
        if (not self.correctness_available()):
            answer_notification_type = 'submitted'
        elif (len(id_list) == 1):
            answer_notification_type = self.lcp.correct_map.get_correctness(id_list[0])
        elif (len(id_list) > 1):
            answer_notification_type = self.lcp.correct_map.get_correctness(id_list[0])
            for answer_id in id_list[1:]:
                if (self.lcp.correct_map.get_correctness(answer_id) != answer_notification_type):
                    answer_notification_type = 'partially-correct'
                    break
        ungettext = self.runtime.service(self, 'i18n').ungettext
        if (answer_notification_type == 'incorrect'):
            if (progress is not None):
                answer_notification_message = ungettext('Incorrect    ({progress}    point)', 'Incorrect    ({progress}    points)', progress.frac()[1]).format(progress=str(progress))
            else:
                answer_notification_message = _('Incorrect')
        elif (answer_notification_type == 'correct'):
            if (progress is not None):
                answer_notification_message = ungettext('Correct    ({progress}    point)', 'Correct    ({progress}    points)', progress.frac()[1]).format(progress=str(progress))
            else:
                answer_notification_message = _('Correct')
        elif (answer_notification_type == 'partially-correct'):
            if (progress is not None):
                answer_notification_message = ungettext('Partially    correct    ({progress}    point)', 'Partially    correct    ({progress}    points)', progress.frac()[1]).format(progress=str(progress))
            else:
                answer_notification_message = _('Partially    Correct')
        elif (answer_notification_type == 'submitted'):
            answer_notification_message = _('Answer    submitted.')
    return (answer_notification_type, answer_notification_message)
