{% extends "admin/base.html" %} {#- Translation proposals. The AI's suggestions for datasets that lack a translation are shown next to the source text; nothing is saved until an editor applies one. Plain forms. -#} {# No sidebar: CKAN then gives the page its full width. #} {% block secondary %}{% endblock %} {% block subtitle %}{{ _('Translation proposals') }}{% endblock %} {% block breadcrumb_content %}
  • {{ _('Translation proposals') }}
  • {% endblock %} {% block primary_content_inner %}

    {{ _('Translation proposals') }}

    {{ _('These are machine translations that nobody has read yet. Compare each one with the source text, correct it if needed, and then apply it. Nothing changes in a dataset until you apply a proposal. You only see the datasets you may edit.') }}

    {% if not cards %}

    {{ _('There are no proposals to review.') }}

    {% else %}
    {{ h.csrf_input() }} {% for card in cards %} {% set pid = card.item.id %}

    {{ card.dataset.title or card.dataset.name }}

    {% if card.dataset.organization %}{{ card.dataset.organization.title }} · {% endif %}{{ _('Proposed') }} {{ card.item.created.strftime('%Y-%m-%d') }} · {{ _('Machine-translated: check before applying') }}

    {% for s in card.suggestions %}
    {{ s.source_value if s.source_value is string else (s.source_value or []) | join(', ') }}
    {% if s.suggested_value is string %} {% else %}
    {{ _('Keywords, separated by commas. They are added to the ones already there.') }}
    {% endif %}
    {% endfor %}
    {% endfor %}
    {% if pager.item_count > pager.items_per_page %}{{ pager.pager() }}{% endif %} {% endif %} {% endblock %}