{% load i18n %} {% load django_tables2 %}

{% with name=product.title parent_name=product.parent.title %} {% if product.is_child %} {% if creating %} {% if product.title %} {% blocktrans %} Created product variant '{{ name }}'. {% endblocktrans %} {% else %} {% blocktrans %} Created variant of '{{ parent_name }}'. {% endblocktrans %} {% endif %} {% else %} {% if product.title %} {% blocktrans %} Updated product variant '{{ name }}'. {% endblocktrans %} {% else %} {% blocktrans %} Updated a variant of '{{ parent_name }}'. {% endblocktrans %} {% endif %} {% endif %} {% else %} {% if creating %} {% blocktrans %} Created product '{{ name }}'. {% endblocktrans %} {% else %} {% blocktrans %} Updated product '{{ name }}'. {% endblocktrans %} {% endif %} {% endif %} {% endwith %}

{% trans "Edit again" %} {% trans "View it on the site" %}