diff --git a/invenio_app_rdm/administration/records/records.py b/invenio_app_rdm/administration/records/records.py index 5eb699202..af33ef6cf 100644 --- a/invenio_app_rdm/administration/records/records.py +++ b/invenio_app_rdm/administration/records/records.py @@ -2,6 +2,7 @@ # # Copyright (C) 2023-2024 CERN. # Copyright (C) 2023 Graz University of Technology. +# Copyright (C) 2024 KTH Royal Institute of Technology. # # invenio-administration is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more @@ -21,11 +22,11 @@ class RecordAdminListView(AdminResourceListView): """Configuration for OAI-PMH sets list view.""" api_endpoint = "/records" - name = "Records" + name = "records" resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} - title = "Records" - category = "Records & files" + title = _("Records") + category = _("Records & files") icon = "file" template = "invenio_app_rdm/administration/records/records.html" extension_name = "invenio-rdm-records" @@ -99,11 +100,11 @@ class DraftAdminListView(AdminResourceListView): """Configuration for OAI-PMH sets list view.""" api_endpoint = "/user/records" - name = "Drafts" + name = "drafts" resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} - title = "Drafts" - category = "Records & files" + title = _("Drafts") + category = _("Records & files") icon = "upload" template = "invenio_app_rdm/administration/records/drafts.html" extension_name = "invenio-rdm-records" diff --git a/invenio_app_rdm/administration/user_moderation/user_moderation.py b/invenio_app_rdm/administration/user_moderation/user_moderation.py index 158016a17..c30f49144 100644 --- a/invenio_app_rdm/administration/user_moderation/user_moderation.py +++ b/invenio_app_rdm/administration/user_moderation/user_moderation.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Copyright (C) 2023-2024 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. @@ -13,6 +14,7 @@ AdminResourceDetailView, AdminResourceListView, ) +from invenio_i18n import lazy_gettext as _ from invenio_requests.customizations.user_moderation import UserModerationRequest from invenio_search_ui.searchconfig import search_app_config @@ -25,9 +27,9 @@ class UserModerationListView(AdminResourceListView): name = "moderation" resource_config = "requests_resource" request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} - title = "Moderation" - menu_label = "Moderation" - category = "Moderation" + title = _("Moderation") + menu_label = _("Moderation") + category = _("Moderation") pid_path = "id" icon = "users" template = "invenio_app_rdm/administration/user_moderation.html" @@ -41,30 +43,30 @@ class UserModerationListView(AdminResourceListView): item_field_list = { # custom display of the values - only declared to create columns "expanded.topic.user": { - "text": "User", + "text": _("User"), "order": 2, "width": 4, }, # custom display of the values - only declared to create columns "expanded.topic.user.profile.email": { - "text": "Email", + "text": _("Email"), "order": 3, "width": 2, }, # custom display of the values - only declared to create columns "domain": { - "text": "Email domain", + "text": _("Email domain"), "order": 4, "width": 2, }, # custom display of the values - only declared to create columns "activity": { - "text": "Activity", + "text": _("Activity"), "order": 5, "width": 4, }, "status": { - "text": "Status", + "text": _("Status"), "order": 6, "width": 2, }, @@ -72,12 +74,12 @@ class UserModerationListView(AdminResourceListView): actions = { "accept": { - "text": "Approve", + "text": _("Approve"), "payload_schema": None, "order": 1, }, "decline": { - "text": "Block", + "text": _("Block"), "payload_schema": None, "order": 2, }, @@ -137,7 +139,7 @@ class UserModerationRequestDetailView(AdminResourceDetailView): api_endpoint = "/requests" name = "user-moderation-details" resource_config = "requests_resource" - title = "User moderation" + title = _("User moderation") display_delete = False display_edit = False @@ -160,14 +162,14 @@ def get_service_schema(cls): item_field_list = { "id": { - "text": "ID", + "text": _("ID"), "order": 1, }, "topic.user": { - "text": "User", + "text": _("User"), "order": 3, }, # TODO we should resolve the user. But this is fetched from the API. # TODO can we dereference somehow? - "created": {"text": "Created", "order": 2}, - "is_open": {"text": "Open", "order": 4}, + "created": {"text": _("Created"), "order": 2}, + "is_open": {"text": _("Open"), "order": 4}, } diff --git a/invenio_app_rdm/administration/users/users.py b/invenio_app_rdm/administration/users/users.py index 309ce648a..1e7844258 100644 --- a/invenio_app_rdm/administration/users/users.py +++ b/invenio_app_rdm/administration/users/users.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # # Copyright (C) 2023-2024 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. @@ -53,9 +54,9 @@ class UsersListView(AdminResourceListView): extension_name = "invenio-users-resources" name = "users" resource_config = "users_resource" - title = "User management" - menu_label = "Users" - category = "User management" + title = _("User management") + menu_label = _("Users") + category = _("User management") pid_path = "id" icon = "users" @@ -75,22 +76,22 @@ class UsersListView(AdminResourceListView): # TODO: missing permission based links in resource actions = { "approve": { - "text": "Approve", + "text": _("Approve"), "payload_schema": None, "order": 1, }, "restore": { - "text": "Restore", + "text": _("Restore"), "payload_schema": None, "order": 2, }, "block": { - "text": "Block", + "text": _("Block"), "payload_schema": None, "order": 2, }, "Deactivate": { - "text": "Suspend", + "text": _("Suspend"), "payload_schema": None, "order": 2, }, diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html index 3c7695aca..3963b6e21 100644 --- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html @@ -4,6 +4,7 @@ Copyright (C) 2021-2023 TU Wien. Copyright (C) 2021 Graz University of Technology. Copyright (C) 2021 New York University. + Copyright (C) 2024 KTH Royal Institute of Technology. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -77,7 +78,7 @@

{% endif %} {% if community.parent %} -
Part of +
{{ _('Part of') }} {{community.parent.metadata.title}} @@ -108,7 +109,7 @@

- Not you? - Log out to switch account. + {{ _("Not you?") }} + {{ _("Log out") }} {{ _("to switch account.") }}

{% endif %} diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html index a20e87acc..cb33e0496 100644 --- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html +++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html @@ -1,11 +1,12 @@ {# Copyright (C) 2020 CERN. Copyright (C) 2020 Northwestern University. + Copyright (C) 2024 KTH Royal Institute of Technology. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #}
- Send message + {{ _("Send message") }}
diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html index eb51d2770..11c85da23 100644 --- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html +++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html @@ -3,6 +3,7 @@ Copyright (C) 2020 Northwestern University. Copyright (C) 2021 Graz University of Technology. Copyright (C) 2021 New York University. + Copyright (C) 2024 KTH Royal Institute of Technology. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -10,13 +11,12 @@ {% macro license_link(license) %} {% if license.link %} - Read more + {{ _('Read more') }} {% elif license.props and license.props.url %} - Read more + {{ _('Read more') }} {% endif %} {% endmacro %} - {% set rights = record.ui.get('rights') %} {% if rights %} diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html index c272562f8..c9d94189e 100644 --- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html +++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html @@ -1,5 +1,6 @@ {# Copyright (C) 2020 CERN. + Copyright (C) 2024 KTH Royal Institute of Technology. Invenio RDM Records 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,8 +10,8 @@
- Version {{ version }} - {% set doi = doi if doi else "No DOI available" %} + {{ _("Version") }} {{ version }} + {% set doi = doi if doi else _("No DOI available") %}

{{ doi }}

@@ -18,4 +19,4 @@
-{%- endmacro %} +{%- endmacro %} \ No newline at end of file diff --git a/invenio_app_rdm/records_ui/views/deposits.py b/invenio_app_rdm/records_ui/views/deposits.py index 9a3c8ba5a..e797ca19d 100644 --- a/invenio_app_rdm/records_ui/views/deposits.py +++ b/invenio_app_rdm/records_ui/views/deposits.py @@ -3,7 +3,7 @@ # Copyright (C) 2019-2024 CERN. # Copyright (C) 2019-2021 Northwestern University. # Copyright (C) 2021 TU Wien. -# Copyright (C) 2022 KTH Royal Institute of Technology +# Copyright (C) 2022-2024 KTH Royal Institute of Technology # Copyright (C) 2023 Graz University of Technology. # # Invenio App RDM is free software; you can redistribute it and/or modify it @@ -188,7 +188,7 @@ def subjects(self): .options(load_only("id")) .all() ) - limit_to = [{"text": "All", "value": "all"}] + limit_to = [{"text": _("All"), "value": "all"}] # id is human readable and shorter, so we use it limit_to += [{"text": s.id, "value": s.id} for s in subjects] diff --git a/invenio_app_rdm/records_ui/views/filters.py b/invenio_app_rdm/records_ui/views/filters.py index 8aafd4520..b1e951e46 100644 --- a/invenio_app_rdm/records_ui/views/filters.py +++ b/invenio_app_rdm/records_ui/views/filters.py @@ -3,6 +3,7 @@ # Copyright (C) 2019-2024 CERN. # Copyright (C) 2019-2020 Northwestern University. # Copyright (C) 2021 TU Wien. +# 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. @@ -16,6 +17,7 @@ from flask import current_app, url_for from invenio_base.utils import obj_or_import_string from invenio_i18n import get_locale +from invenio_i18n import lazy_gettext as _ from invenio_previewer.views import is_previewable from invenio_records_files.api import FileObject from invenio_records_permissions.policies import get_record_permission_policy @@ -202,6 +204,6 @@ def transform_record(record, serializer, module=None, throws=True, **kwargs): if throws: raise Exception("No serializer found.") except Exception: - current_app.logger.error("Record transformation failed.") + current_app.logger.error(_("Record transformation failed.")) if throws: raise diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js index 3b9405994..204382148 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js @@ -1,6 +1,7 @@ /* * // This file is part of Invenio-App-Rdm * // Copyright (C) 2023 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. @@ -72,7 +73,7 @@ export class ImpersonateUser extends Component { labelPosition="left" > - Impersonate + {i18next.t("Impersonate")} {modalHeader && {modalHeader}} diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js index 4a742a12c..620a5ad2c 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js @@ -1,6 +1,7 @@ /* * This file is part of Invenio. * Copyright (C) 2022-2024 CERN. + * Copyright (C) 2024 KTH Royal Institute of Technology. * * Invenio is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. @@ -152,15 +153,15 @@ class SearchResultItemComponent extends Component { }> (window.location = result.links.admin_records_html)} /> (window.location = result.links.admin_drafts_html)} /> (window.location = result.links.admin_moderation_html)} /> diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js index 708ff9029..5183d3c62 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js @@ -1,5 +1,6 @@ // This file is part of InvenioRDM // Copyright (C) 2022-2024 CERN. +// Copyright (C) 2024 KTH Royal Institute of Technology. // // Invenio 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. @@ -26,7 +27,7 @@ class RecordsResultsListItem extends Component { const createdDate = _get( result, "ui.created_date_l10n_long", - "No creation date found." + i18next.t("No creation date found.") ); const creators = result.ui.creators.creators; @@ -34,21 +35,21 @@ class RecordsResultsListItem extends Component { const descriptionStripped = _get( result, "ui.description_stripped", - "No description" + i18next.t("No description") ); const publicationDate = _get( result, "ui.publication_date_l10n_long", - "No publication date found." + i18next.t("No publication date found.") ); const resourceType = _get( result, "ui.resource_type.title_l10n", - "No resource type" + i18next.t("No resource type") ); const subjects = _get(result, "ui.subjects", []); - const title = _get(result, "metadata.title", "No title"); + const title = _get(result, "metadata.title", i18next.t("No title")); const version = _get(result, "ui.version", null); const versions = _get(result, "versions"); const uniqueViews = _get(result, "stats.all_versions.unique_views", 0); diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js index b22bc87f6..0719aa23f 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js @@ -63,16 +63,16 @@ export class RDMDepositForm extends Component { creators: { ...this.config.vocabularies.creators, type: [ - { text: "Person", value: "personal" }, - { text: "Organization", value: "organizational" }, + { text: i18next.t("Person"), value: "personal" }, + { text: i18next.t("Organization"), value: "organizational" }, ], }, contributors: { ...this.config.vocabularies.contributors, type: [ - { text: "Person", value: "personal" }, - { text: "Organization", value: "organizational" }, + { text: i18next.t("Person"), value: "personal" }, + { text: i18next.t("Organization"), value: "organizational" }, ], }, identifiers: { @@ -358,8 +358,8 @@ export class RDMDepositForm extends Component { schema="contributors" autocompleteNames={this.config.autocomplete_names} modal={{ - addLabel: "Add contributor", - editLabel: "Edit contributor", + addLabel: i18next.t("Add contributor"), + editLabel: i18next.t("Edit contributor"), }} /> @@ -432,7 +432,7 @@ export class RDMDepositForm extends Component { { return { diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js index cbc1a6bad..394fa2eff 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js @@ -1,6 +1,7 @@ /* * This file is part of Invenio. * Copyright (C) 2023-2024 CERN. + * Copyright (C) 2024 KTH Royal Institute of Technology. * * Invenio is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. @@ -97,20 +98,20 @@ export const LinksSearchItem = ({ {!error && ( <> - + {isEmpty(result.description) ? "-" : _truncate(result.description, { length: 60 })} - + {timestampToRelativeTime(result.created_at)} - + {isEmpty(result.expires_at) ? i18next.t("Never") : `${timestampToRelativeTime(result.expires_at)} (${result.expires_at})`} - + { $authButton.attr( "aria-label", - $authIcon.hasClass("sign-in") ? "Logging in..." : "Logging out..." + $authIcon.hasClass("sign-in") + ? i18next.t("Logging in...") + : i18next.t("Logging out...") ); $authButton.attr("aria-busy", "true"); $authButton.addClass("disabled"); diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js index c8c368c35..7a1da93bb 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js @@ -3,6 +3,7 @@ // Copyright (C) 2020-2021 Northwestern University. // Copyright (C) 2021 Graz University of Technology. // Copyright (C) 2021 New York University. +// 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. @@ -121,7 +122,11 @@ RDMRecordResultsListItem.propTypes = { // these components in RDM result broken. export const RDMRecordResultsGridItem = ({ result, index }) => { - const descriptionStripped = _get(result, "ui.description_stripped", "No description"); + const descriptionStripped = _get( + result, + "ui.description_stripped", + i18next.t("No description") + ); return ( diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js index 6996fbe45..8a282b27f 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js @@ -3,6 +3,7 @@ // Copyright (C) 2021 New York University. // Copyright (C) 2022 data-futures. // Copyright (C) 2023 Northwestern University. +// Copyright (C) 2024 KTH Royal Institute of Technology. // // Invenio RDM Records is free software; you can redistribute it and/or modify it // under the terms of the MIT License; see LICENSE file for more details. @@ -27,19 +28,19 @@ export function SearchItemCreators({ creators, className, othersLink }) { link = `https://orcid.org/${identifier}`; linkTitle = i18next.t("ORCID profile"); icon = "/static/images/orcid.svg"; - alt = "ORCID logo"; + alt = i18next.t("ORCID logo"); break; case "ror": link = `https://ror.org/${identifier}`; linkTitle = i18next.t("ROR profile"); icon = "/static/images/ror-icon.svg"; - alt = "ROR logo"; + alt = i18next.t("ROR logo"); break; case "gnd": link = `https://d-nb.info/gnd/${identifier}`; linkTitle = i18next.t("GND profile"); icon = "/static/images/gnd-icon.svg"; - alt = "GND logo"; + alt = i18next.t("GND logo"); break; default: return null; @@ -61,13 +62,13 @@ export function SearchItemCreators({ creators, className, othersLink }) { function getIcons(creator) { let ids = _get(creator, "person_or_org.identifiers", []); - let creatorName = _get(creator, "person_or_org.name", "No name"); + let creatorName = _get(creator, "person_or_org.name", i18next.t("No name")); let icons = ids.map((c) => makeIcon(c.scheme, c.identifier, creatorName)); return icons; } function getLink(creator) { - let creatorName = _get(creator, "person_or_org.name", "No name"); + let creatorName = _get(creator, "person_or_org.name", i18next.t("No name")); let link = ( diff --git a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html index a2ae60042..3a6ae4912 100644 --- a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html +++ b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html @@ -1,6 +1,7 @@ {# # This file is part of Invenio. # Copyright (C) 2022-2024 CERN. +# Copyright (C) 2024 KTH Royal Institute of Technology. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -21,12 +22,12 @@ {% set title = page.title %} {% block page_body %}
-
-
-

{{ page.title|safe }}

- {% block content %}{{ page.content|safe }}{% endblock %} -
-
+
+
+

{{ page.title|safe }}

+ {% block content %}{{ page.content|safe }}{% endblock %} +
+
{% endblock %} 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 %} diff --git a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html index f09ab5678..40e818d70 100644 --- a/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +++ b/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html @@ -3,6 +3,7 @@ Copyright (C) 2019-2020 CERN. Copyright (C) 2019-2020 Northwestern University. Copyright (C) 2021 Graz University of Technology. + 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. @@ -29,7 +30,7 @@

{{ _("About InvenioRDM") }}

{% endtrans %}