{% extends "base.html" %} {% load i18n %} {% load translations %} {% load crispy_forms_tags %} {% block breadcrumbs %}
  • {% trans "Create component" %}
  • {% endblock %} {% block content %} {% if not projects and not form.fields.component.queryset and not branch_form.fields.component.queryset %} {% trans "You do not have permission to create components in any projects." as msg %} {% show_message "warning" msg %} {% if has_billing %} {% include "snippets/billing-failure.html" %} {% endif %} {% else %}
    {% if projects %}
    {% csrf_token %}

    {% trans "Create a new translation component from remote version control system repository." %}

    {% crispy full_form %}
    {% endif %} {% if form.fields.component.queryset %}
    {% csrf_token %}

    {% trans "Create a new translation component from a repository already cloned in Weblate." %}

    {% crispy existing_form %}
    {% endif %} {% if branch_form.fields.component.queryset %}
    {% csrf_token %}

    {% trans "Create a new translation component for an additional branch of the existing translation component." %}

    {% crispy branch_form %}

    {% trans "The new component will be created for the selected branch with the exact same configuration as the existing one." %}

    {% endif %} {% if zip_form %}
    {% csrf_token %}

    {% trans "Create a new translation component from an uploaded ZIP file containing strings for translation." %} {% trans "The filenames within the archive need to have locale codes in them." %}

    {% crispy zip_form %}
    {% endif %} {% if doc_form %}
    {% csrf_token %}

    {% trans "Create a new translation component from an uploaded document for translation." %}

    {% crispy doc_form %}
    {% endif %} {% if scratch_form %}
    {% csrf_token %}

    {% trans "Create a new empty translation component to start from scratch." %} {% blocktrans with link_start='' link_end='' %}Create a ZIP file containing any existing translation files you have, and {{ link_start }}upload it{{ link_end }}.{% endblocktrans %}

    {% crispy scratch_form %}
    {% endif %}
    {% endif %} {% endblock %}