{% extends "admin/base_site.html" %} {% load i18n %} {% block breadcrumbs %}{% endblock %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}
{% if fetched.delivered %}

{% blocktranslate count n=fetched.delivered %}{{ n }} new translation was fetched.{% plural %}{{ n }} new translations were fetched.{% endblocktranslate %}

{% endif %} {% if cloud_error %}

{{ cloud_error }}

{% endif %} {% if source_label %}

{% blocktranslate %}Translates the version you're viewing ({{ source_label }}).{% endblocktranslate %}

{% endif %} {% if not per_language %}

{% translate "All languages of this content are published together: publishing a reviewed draft publishes every language." %}

{% endif %} {% if todo.all_done %}
🎉 {% translate "All translations are up to date." %} {% translate "Nice work, there's nothing left to do here." %}
{% elif cloud_status and not todo.editor %}

{% translate "Nothing for you to do right now: Ponyglot is on it." %}

{% endif %} {% for lang in languages %} {% endfor %}
{{ lang.name }} {{ lang.code|upper }} {% if lang.excluded %}{% translate "Not translated (excluded)" %} {% elif lang.done %}✓ {% translate "Up to date" %} {% else %} {% if lang.removed %}{% blocktranslate count n=lang.removed with source=source_name %}{{ n }} plugin was deleted from {{ source }}{% plural %}{{ n }} plugins were deleted from {{ source }}{% endblocktranslate %}{% endif %} {% if lang.choose %}{% blocktranslate with source=source_name %}Already translated, laid out differently from {{ source }}: choose how to go on{% endblocktranslate %} {% elif lang.waiting %}{% blocktranslate count n=lang.waiting %}{{ n }} translation to apply{% plural %}{{ n }} translations to apply{% endblocktranslate %}{% endif %} {% if lang.draft_url and not lang.waiting %}{% if versioned %}{% translate "Translated draft ready for review" %}{% endif %}{% endif %} {% if lang.untranslated %}{% if lang.translating %}{% translate "Being translated…" %}{% else %}{% blocktranslate count n=lang.untranslated %}{{ n }} text missing or outdated{% plural %}{{ n }} texts missing or outdated{% endblocktranslate %}{% endif %}{% endif %} {% if lang.in_review %}{% blocktranslate count n=lang.in_review %}{{ n }} text in review at Ponyglot{% plural %}{{ n }} texts in review at Ponyglot{% endblocktranslate %}{% endif %} {% if lang.held %}{% if lang.attention_url %}{% endif %}{% blocktranslate count n=lang.held %}{{ n }} text held by a quality check{% plural %}{{ n }} texts held by a quality check{% endblocktranslate %}{% if lang.attention_url %} ↗{% endif %}{% endif %} {% if lang.unaligned %}{% blocktranslate count n=lang.unaligned|length %}{{ n }} text couldn't be placed: the draft's plugins differ from the source.{% plural %}{{ n }} texts couldn't be placed: the draft's plugins differ from the source.{% endblocktranslate %} {% translate "Fix" %}{% endif %} {% if not cloud_status and not lang.waiting and not lang.draft_url %}{% translate "Status unknown" %}{% endif %} {% endif %} {% if not lang.excluded %} {% if lang.choose %}
{% csrf_token %}
{% csrf_token %}
{% elif lang.waiting %}
{% csrf_token %}
{% elif lang.draft_url %} {% translate "Review draft" %} {% endif %} {% if lang.removed %}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if lang.untranslated and not lang.translating %}
{% csrf_token %} {% include "admin/ponyglot/partials/publish_field.html" %}
{% endif %} {% endif %}
{% for lang in languages %}{% if lang.choose %}

{% blocktranslate with name=lang.name source=source_name %}{{ name }} was translated before, and its plugins differ from {{ source }}. Add to existing {{ name }} keeps them and fills in the translations where the plugins match (in its draft, or a new draft of it). Start from {{ source }} replaces them with a translated copy of the {{ source }} plugins, in a draft. Either way, nothing is published until you publish the draft.{% endblocktranslate %}

{% endif %}{% endfor %} {% if todo.in_review %}

{% translate "“In review” clears as soon as the translated content is published: publishing approves the translations. Ponyglot may learn about it with a short delay." %}

{% endif %} {% if translate_due and not todo.translating %}{% include "admin/ponyglot/partials/publish_choice.html" %}{% endif %} {# One form per general action, with all its fields: the footer buttons submit them through #} {# form="…". django CMS submits them with form.submit(), so a button's own name/value isn't sent. #}
{% csrf_token %} {% if cloud_status and todo.untranslated_languages %}{% for code in todo.untranslated_languages %}{% endfor %} {% else %}{% for lang in languages %}{% if not lang.excluded %}{% endif %}{% endfor %}{% endif %} {% include "admin/ponyglot/partials/publish_field.html" %}
{% csrf_token %}
{# The CMS modal pulls the buttons of the first submit-row into its footer: buttons only #} {# (a hidden input there stops the CMS from collecting the rest). "default" closes the modal. #}
{% if not todo.translating %} {% if todo.untranslated_languages|length > 1 or not cloud_status and translate_due %}{% endif %} {% endif %} {% if fetch_due %}{% endif %} {# Always one item: with an empty submit row, django CMS takes the first form's button. #} {% translate "Details" %}
{% endblock %}