Skip to content

Commit

Permalink
i18n: mark strings for oai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Dec 4, 2024
1 parent a736fb5 commit 97b492e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions invenio_rdm_records/administration/views/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2022-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
Expand All @@ -23,10 +24,11 @@ class OaiPmhListView(AdminResourceListView):

api_endpoint = "/oaipmh/sets"
name = "OAI-PMH"
menu_label = _("OAI-PMH")
resource_config = "oaipmh_server_resource"
search_request_headers = {"Accept": "application/json"}
title = "OAI-PMH Sets"
category = "Site management"
title = _("OAI-PMH Sets")
category = _("Site management")
pid_path = "id"
icon = "exchange"
template = "invenio_rdm_records/oai-search.html"
Expand Down Expand Up @@ -59,9 +61,9 @@ class OaiPmhEditView(AdminResourceEditView):
resource_config = "oaipmh_server_resource"
pid_path = "id"
api_endpoint = "/oaipmh/sets"
title = "Edit OAI-PMH set"
title = _("Edit OAI-PMH set")

list_view_name = "OAI-PMH"
list_view_name = _("OAI-PMH")

form_fields = {
"name": {
Expand Down Expand Up @@ -99,9 +101,9 @@ class OaiPmhCreateView(AdminResourceCreateView):
resource_config = "oaipmh_server_resource"
pid_path = "id"
api_endpoint = "/oaipmh/sets"
title = "Create OAI-PMH set"
title = _("Create OAI-PMH set")

list_view_name = "OAI-PMH"
list_view_name = _("OAI-PMH")

form_fields = {
"name": {
Expand Down Expand Up @@ -136,13 +138,13 @@ class OaiPmhDetailView(AdminResourceDetailView):
search_request_headers = {"Accept": "application/json"}
name = "OAI-PMH details"
resource_config = "oaipmh_server_resource"
title = "OAI-PMH Details"
title = _("OAI-PMH Details")

template = "invenio_rdm_records/oai-details.html"
display_delete = True
display_edit = True

list_view_name = "OAI-PMH"
list_view_name = _("OAI-PMH")
pid_path = "id"

item_field_list = {
Expand Down

0 comments on commit 97b492e

Please sign in to comment.