{% 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 submitted for approval in moderation stage "{{ 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 submitted for approval in moderation stage "{{ task }}"
    {% endblocktrans %}
    {{ message|capfirst|safe }}
{% endif %}
