def get_is_active(language, order):
    """
    Checks if order is active or no and creates response in appropriate language
    :param language: language of conversation
    :param order: client order
    :return: string with info about if order is active or no
    """
    output_string = ""
    if language == 'pl':
        if order.is_active:
            output_string = "TAK"
        else:
            output_string = "Nie"
    elif language == 'en':
        if order.is_active:
            output_string = "YES"
        else:
            output_string = "NO"

    return output_string