@register.inclusion_tag("resources/upload_resource_translation_button.html", takes_context=True)
def upload_resource_translation_button(context, request, resource, language=None,
     prefix='button', translate_online=False):
    """Form to add a translation.

    If the parameter translate online is given, a new button will appear next
    to the upload button which onclick will redirect the user to lotte.
    """
    if language or (request.POST or
                    request.POST.get('target_language', None)):
        return update_translation_form(context, request, resource, language)
    else:
        return create_translation_form(context, request, resource, language)
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/templatetags/upload_manager_tags.py/upload_resource_translation_button/operator `and` -> `or`