def update_translation_form(context, request, resource, language=None,
                            prefix='update_trans', translate_online=False):
    if language:
        initial = {"target_language": language.code, }
    else:
        initial = {}
    form = UpdateTranslationForm(prefix=prefix, initial=initial)

    return {
        'project': resource.project,
        'resource': resource,
        'language' : language,
        'update_translation_form': form,
        'translate_online': False,
        'create': False,
        'static_url': context['STATIC_URL'],
    }
Form to add a translation.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/templatetags/upload_manager_tags.py/update_translation_form