{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}Import Translations{% endblock %} {% block content_title %}

Import Translations

{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %} {% if result %} {% if result.dry_run %}

Dry Run Preview

No changes were made. Review the preview below, then import again without “Dry run” to apply.

Would create{{ result.created }}
Would update {{ result.updated }} {% if result.unchanged %} ({{ result.unchanged }} already up to date) {% endif %}
{% if result.errors %}

Errors:

{% endif %} {% if result.preview %}

Changes

{% for entry in result.preview|slice:":100000" %} {% endfor %}
Action Language Message ID Context Translation Active
{% if entry.action == "create" %} CREATE {% else %} UPDATE {% endif %} {{ entry.language }} {{ entry.msgid|truncatechars:50 }} {{ entry.context }} {% if entry.action == "update" %} {{ entry.old_msgstr_forms|truncatechars:40 }}
{{ entry.msgstr_forms|truncatechars:40 }} {% else %} {{ entry.msgstr_forms|truncatechars:40 }} {% endif %}
{% if entry.action == "update" and entry.old_is_active != entry.is_active %} {% if entry.old_is_active %}Yes{% else %}No{% endif %} → {% if entry.is_active %}Yes{% else %}No{% endif %} {% else %} {% if entry.is_active %}Yes{% else %}No{% endif %} {% endif %}
{% if result.preview|length > 100000 %}

Showing first 100,000 of {{ result.preview|length }} entries.

{% endif %} {% endif %}
{% else %}

Import Results

Created{{ result.created }}
Updated{{ result.updated }}
{% if result.errors %}

Errors:

{% endif %}
{% endif %} {% endif %}
{% csrf_token %}

File

Language (for .po files only)

Required for single .po file import. Ignored for CSV and ZIP.

Options

Back
{% endblock %}