{% extends "base.html" %} {% load i18n %} {% load permissions %} {% load translations %} {% load crispy_forms_tags %} {% block breadcrumbs %}
  • {{ object.project }}
  • {% include "snippets/component-breadcrumb.html" %} {% endblock %} {% block content %} {% perm 'translation.add' object as user_can_add_translation %} {% perm 'translation.add_more' object as user_can_add_more_translation %} {% if user_can_add_translation %}
    {% csrf_token %}

    {% trans "Start new translation" %}

    {% if object.new_lang == 'url' and not can_add %}

    {% trans "The translator instructions has info on how to start translating into other languages." %}

    {% else %}

    {% trans "Please choose the language you want to translate to." %} {% if object.file_format_create_style == "create" %} {% if object.new_base %} {# Bilingual formats #} {% blocktrans with new_base=object.new_base %}A translation file will be created based on {{ new_base }} with all strings untranslated.{% endblocktrans %} {% else %} {# Monolingual formats, for example JSON or Android #} {% trans "An empty translation file will be created and new strings added as they are translated." %} {% endif %} {% elif object.file_format_create_style == "copy" %} {# Documents, for example ODT, HTML, IDML #} {% if object.new_base %} {% blocktrans with new_base=object.new_base %}A translation file will be created as a copy of {{ new_base }} with all strings marked as "Needs editing" and replaced as they are translated.{% endblocktrans %} {% else %} {# Should not happen #} Create style: {{ object.file_format_create_style }} {% endif %} {% elif object.file_format_create_style == "directory" %} {# App store metadata #} {% trans "An empty directory will be created for translations, with individual files created as strings are translated." %} {% else %} {# Should not happen #} Create style: {{ object.file_format_create_style }} {% endif %}

    {% if object.new_lang == 'contact' and not can_add %}

    {% trans "Project maintainers are notified of this request, prompting them to add the language manually." %}

    {% endif %} {{ form|crispy }} {% if user_can_add_more_translation %}

    {% trans "Can't find your language in the list above?" %}

    {% else %}

    {% trans "This list includes only basic languages. Please contact project maintainers to add others." %}

    {% endif %}
    {% endif %} {% endblock %}