{% extends "admin/base_site.html" %} {% load i18n admin_urls %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block breadcrumbs %}{% if not is_popup %} {% endif %}{% 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 all_done %}
🎉 {% translate "All translations are up to date." %}
{% 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.waiting %}{% blocktranslate count n=lang.waiting %}{{ n }} translation to apply{% plural %}{{ n }} translations to apply{% endblocktranslate %}{% if lang.waiting_errors %} · {% blocktranslate count n=lang.waiting_errors %}{{ n }} with a QA error{% plural %}{{ n }} with QA errors{% endblocktranslate %}{% 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.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 counts is None and not lang.waiting %}{% translate "Status unknown" %}{% endif %} {% endif %} {% if not lang.excluded %} {% if lang.waiting %} {% translate "Review" %} {% if can_apply %}
{% csrf_token %}
{% endif %} {% endif %} {% if lang.untranslated and not lang.translating %}
{% csrf_token %}{% include "admin/ponyglot/partials/publish_field.html" %}
{% endif %} {% endif %}
{% if not translating and translate_languages %}{% include "admin/ponyglot/partials/publish_choice.html" %}{% endif %} {% if languages|length and can_apply %}

{% translate "“Apply” writes the translations into your content right away (texts with QA errors excepted: review them first)." %}

{% endif %} {% if scope.kind == "site" %}

{% if last_run %}{% blocktranslate with when=last_run.finished_at|timesince %}Last sync: {{ when }} ago.{% endblocktranslate %}{% else %}{% translate "No sync has run yet." %}{% endif %} {% if sync_overdue %}{% translate "No sync ran lately. “Sync now” sends changes and fetches finished translations." %}{% endif %} {% if held_total %}{% blocktranslate count n=held_total %}{{ n }} translation is held by a quality check in Ponyglot.{% plural %}{{ n }} translations are held by a quality check in Ponyglot.{% endblocktranslate %}{% endif %}

{% translate "Documents" %}

{% translate "Which documents need attention" %} → {% translate "Every document with a gap, per language: open it, or translate and apply in bulk." %}

{% if models %}

{% translate "Content types" %}

{% for model in models %} {% endfor %}
{% if model.url %}{{ model.name|capfirst }}{% else %}{{ model.name|capfirst }}{% endif %} {{ model.adapter }} {% if model.waiting %}{% blocktranslate count n=model.waiting %}{{ n }} translation to apply{% plural %}{{ n }} translations to apply{% endblocktranslate %}{% endif %} {% translate "Documents" %}
{% endif %}
{% translate "Jobs and syncs" %}{% if translating %} ({% translate "a job is running" %}){% endif %} {% if jobs %} {% for job in jobs %} {% endfor %}
{% translate "Job" %}{% translate "Status" %}{% translate "Languages" %}{% translate "Progress" %}
#{{ job.id }} {{ job.type }}{{ job.status }}{{ job.languages|join:", "|upper }} {{ job.done_segments }} / {{ job.estimated_segments }}{% if job.failed_segments %} · {{ job.failed_segments }} {% translate "failed" %}{% endif %}
{% else %}

{% translate "No recent jobs." %}

{% endif %} {% if runs %} {% for run in runs %} {% endfor %}
{% translate "Sync" %}{% translate "Result" %}
{{ run.started_at|date:"SHORT_DATETIME_FORMAT" }} {% if run.ok %}{% blocktranslate with pushed=run.report.pushed|default:0 delivered=run.report.delivered|default:0 %}{{ pushed }} sent, {{ delivered }} received{% endblocktranslate %}{% else %}{{ run.error|default:_("failed")|truncatechars:120 }}{% endif %}
{% endif %}

{% translate "All sync runs" %}

{% else %} {% if jobs %}

{% translate "Jobs" %}

{% for job in jobs %} {% endfor %}
{% translate "Job" %}{% translate "Status" %}{% translate "Languages" %}{% translate "Progress" %}
#{{ job.id }} {{ job.type }}{{ job.status }}{{ job.languages|join:", "|upper }} {{ job.done_segments }} / {{ job.estimated_segments }}{% if job.failed_segments %} · {{ job.failed_segments }} {% translate "failed" %}{% endif %}
{% endif %} {% endif %} {% if scope.back_label %}

{{ scope.back_label }}

{% endif %} {# One form per general action with all its fields; the footer buttons submit them via form="…" #} {# (django CMS submits them with form.submit(): a button's own name/value isn't sent). #}
{% csrf_token %} {% for code in translate_languages %}{% endfor %} {% include "admin/ponyglot/partials/publish_field.html" %}
{% csrf_token %}
{# General actions only, buttons only: django CMS' modal pulls them into its footer. #}
{% if not translating and translate_languages %} {% if scope.kind != "object" or translate_languages|length > 1 or counts is None %} {% endif %} {% endif %} {% if fetch_due %}{% endif %}
{% endblock %}