{% extends "admin/base_site.html" %} {% load i18n %} {% block breadcrumbs %}{% endblock %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}
{% if exclusion and exclusion.all_languages %}

{% translate "This content is excluded from translation." %}

{% else %} {% if not per_language %}

{% translate "All languages of this content are published together." %}

{% endif %} {% if not versioned %}

{% translate "This content type isn't versioned: translations wait until you apply them, and applying publishes them." %}

{% endif %}

{% translate "Status" %}

{% if cloud_error %}

{{ cloud_error }}

{% endif %} {% if source_label %}

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

{% endif %} {% if cloud_status %}

{% blocktranslate with n=cloud_status.segments_needing_work total=cloud_status.segments_total %}{{ n }} of {{ total }} segments need work.{% endblocktranslate %}

{% endif %} {% if todo.any %} {% if not todo.editor %}

{% translate "Nothing for you to do right now: the rest is with Ponyglot." %}

{% endif %} {% endif %} {% if cloud_status %} {% for lang in cloud_status.languages %}{% endfor %} {% for row in rows %} {% for cell in row.cells %} {% endfor %} {% endfor %}
{% translate "Segment" %}{{ lang.code|upper }}
{{ row.key|truncatechars:40 }} {% if cell.held %}{% translate "waiting for QA" %}{% else %}{% for key, label in symbols.items %}{% if key == cell.state %}{{ label }}{% endif %}{% endfor %}{% endif %} {% for issue in cell.issues %}{% if issue.severity == "error" and not cell.held %}⚠{% endif %}{% endfor %}
{% endif %}

{% translate "Jobs" %}

{% 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 %}
{% endif %} {% if not jobs %}

{% translate "No recent jobs." %}

{% endif %}

{% if last_sync %}{% blocktranslate with when=last_sync.finished_at|timesince %}Last sync: {{ when }} ago.{% endblocktranslate %}{% endif %} {% if sync_overdue %}{% translate "No sync ran lately. “Sync now” sends changes and fetches finished translations." %}{% endif %}

{% if held_back %}

{% translate "Waiting for a QA review" %}

{% endif %} {% for lang in languages %} {% if lang.unaligned %}

{{ lang.code|upper }}

{% if lang.unaligned %}

{% blocktranslate count n=lang.unaligned|length %}{{ n }} source text has no counterpart in the draft's plugins (the structure differs).{% plural %}{{ n }} source texts have no counterpart in the draft's plugins (the structure differs).{% endblocktranslate %}

{% csrf_token %}
{% endif %}
{% endif %} {% endfor %} {% 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 %}
{% 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. #} {# Per-language buttons stay inline. #}
{% if exclusion and exclusion.all_languages %} {% else %} {% if not todo.translating %} {% if translate_due %}{% endif %} {% endif %} {% if sync_overdue %} {% elif fetch_due %}{% endif %} {% endif %} {# Always one item: with an empty submit row, django CMS takes the first form's button. #} {% translate "Back to overview" %}
{% endblock %}