From 2fbb8ea7abcf20fd2af3cfb218148d0a43420551 Mon Sep 17 00:00:00 2001 From: David Eckhard Date: Tue, 25 Jul 2023 10:59:39 +0200 Subject: [PATCH] templates: mark text for translation in review request notification --- .../community-submission.submit.jinja | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/invenio_rdm_records/templates/semantic-ui/invenio_notifications/community-submission.submit.jinja b/invenio_rdm_records/templates/semantic-ui/invenio_notifications/community-submission.submit.jinja index abad9a61f..26762fb98 100644 --- a/invenio_rdm_records/templates/semantic-ui/invenio_notifications/community-submission.submit.jinja +++ b/invenio_rdm_records/templates/semantic-ui/invenio_notifications/community-submission.submit.jinja @@ -15,24 +15,26 @@ %} {%- block subject -%} - New record submission for your community {{ community_title }} submitted by {{ creator_name }} + {{ _("New record submission for your community '{community_title}' submitted by '{creator_name}'").format(community_title=community_title, creator_name=creator_name) }} {%- endblock subject -%} {%- block html_body -%} -

The record "{{ record_title }}" was submitted to your community "{{ community_title }}" by "{{ creator_name }}".

+

+ {{ _("The record '{record_title}' was submitted to your community '{community_title}' by '{creator_name}'.").format(record_title=record_title, community_title=community_title, creator_name=creator_name) }} +

-Review the submission_request + {{ _("Review the submission request") }} {%- endblock html_body -%} {%- block plain_body -%} -The record "{{ record_title }}" was submitted to your community "{{ community_title }}" by "{{ creator_name }}". + {{ _("The record '{record_title}' was submitted to your community '{community_title}' by '{creator_name}'.").format(record_title=record_title, community_title=community_title, creator_name=creator_name) }} -Review the submission request: {{ request_link }} + {{ _("Review the submission request: {request_link}").format(request_link=request_link) }} {%- endblock plain_body -%} {# Markdown for Slack/Mattermost/chat #} {%- block md_body -%} -The record *{{ record_title }}* was submitted to your community *{{ community_title }}* by *{{ creator_name }}*. + {{ _("The record *{record_title}* was submitted to your community *{community_title}* by *{creator_name}*.").format(record_title=record_title, community_title=community_title, creator_name=creator_name) }} -[Review the submission request]({{ request_link }}) + [{{ _("Review the submission request") }}]({{ request_link }}) {%- endblock md_body -%}