diff --git a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html index cc5f3da9e..ebfb8f425 100644 --- a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +++ b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright (C) 2022 CERN. +# Copyright (C) 2024 KTH Royal Institute of Technology. # # Invenio App RDM is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -9,23 +10,23 @@ {% set BASE_URL = config.SITE_UI_URL %} -The following files were flagged as 'unhealthy'. This means that the checksum check failed or timed out. Please take any action if needed. +{{ _("The following files were flagged as 'unhealthy'. This means that the checksum check failed or timed out. Please take any action if needed.") }} {% for entry in entries -%} -{{ "ID: %s" | format(entry.file.id) }} -{{ "URI: %s" | format(entry.file.uri) }} +{{ _("ID: %s") | format(entry.file.id) }} +{{ _("URI: %s") | format(entry.file.uri) }} {%- if 'filename' in entry %} -{{ "Name: %s" | format(entry.filename) }} +{{ _("Name: %s") | format(entry.filename) }} {%- endif %} -{{ "Created: %s" | format(entry.file.created) }} -{{ "Checksum: %s" | format(entry.file.checksum) }} -{{ "Last check date: %s" | format(entry.file.last_check_at) }} -{{ "Last check FAILED with result: %s" | format(entry.file.last_check) }} +{{ _("Created: %s") | format(entry.file.created) }} +{{ _("Checksum: %s") | format(entry.file.checksum) }} +{{ _("Last check date: %s") | format(entry.file.last_check_at) }} +{{ _("Last check FAILED with result: %s") | format(entry.file.last_check) }} {%- if 'record' in entry %} -{{ "Record: %s/records/%s" | format(BASE_URL, entry.record.id) }} +{{ _("Record: %s/records/%s") | format(BASE_URL, entry.record.id) }} {%- endif %} {%- if 'draft' in entry %} -{{ "Draft: %s/uploads/%s" | format(BASE_URL, entry.draft.id) }} +{{ _("Draft: %s/uploads/%s") | format(BASE_URL, entry.draft.id) }} {%- endif %} {{ "-" * 80 }} {% endfor %}