Skip to content

Commit

Permalink
i18n: mark strings for services/services.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Dec 5, 2024
1 parent 1062480 commit 88ae05f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions invenio_rdm_records/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Copyright (C) 2021-2023 TU Wien.
# Copyright (C) 2021 Graz University of Technology.
# Copyright (C) 2022 Universität Hamburg.
# 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.
Expand All @@ -19,6 +20,7 @@
from invenio_db import db
from invenio_drafts_resources.services.records import RecordService
from invenio_drafts_resources.services.records.uow import ParentRecordCommitOp
from invenio_i18n import lazy_gettext as _
from invenio_records_resources.services import LinksTemplate, ServiceSchemaWrapper
from invenio_records_resources.services.errors import PermissionDeniedError
from invenio_records_resources.services.uow import (
Expand Down Expand Up @@ -628,8 +630,10 @@ def update_draft(
)
if end_of_grace_period <= datetime.now():
raise ValidationError(
"Record visibility can not be changed to restricted "
"anymore. Please contact support if you still need to make these changes."
_(
"Record visibility can not be changed to restricted "
"anymore. Please contact support if you still need to make these changes."
)
)

return super().update_draft(
Expand Down

0 comments on commit 88ae05f

Please sign in to comment.