Skip to content

Commit

Permalink
i18n: mark strings for pids/errors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Dec 5, 2024
1 parent 7351b99 commit 1062480
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion invenio_rdm_records/services/pids/errors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021-2024 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.
Expand All @@ -27,4 +28,10 @@ class ProviderNotSupportedError(RDMRecordsException):

def __init__(self, provider, scheme):
"""Initialise error."""
super().__init__(f"Unknown PID provider {provider} for {scheme}")
super().__init__(
_(
"Unknown PID provider {provider} for {scheme}".format(
provider=provider, scheme=scheme
)
)
)

0 comments on commit 1062480

Please sign in to comment.