{% load wagtailadmin_tags i18n %}

{% if page %}
    {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in "{{ task }}".{% endblocktrans %}
{% else %}
    {% latest_str object as title %}
    {% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
        The {{ model_name }} "{{ title }}" has been approved in "{{ task }}".
    {% endblocktrans %}
    {{ message|capfirst|safe }}
{% endif %}
