Skip to content

Commit

Permalink
i18n: mark missing translations for errors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Oct 25, 2024
1 parent a5bb49b commit 50fe95e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_drafts_resources/resources/records/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2021 CERN.
# Copyright (C) 2021 TU Wien.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio-Drafts-Resources 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 @@ -12,6 +13,7 @@
import json

from flask_resources.errors import HTTPJSONException
from invenio_i18n import lazy_gettext as _
from invenio_pidstore.errors import PIDDoesNotExistError


Expand All @@ -28,7 +30,7 @@ class RedirectException(HTTPJSONException):
def __init__(self, location, **kwargs):
"""Constructor."""
self.location = location
kwargs.setdefault("description", "Redirecting...")
kwargs.setdefault("description", _("Redirecting..."))
super().__init__(**kwargs)

def get_headers(self, environ=None, scope=None):
Expand Down

0 comments on commit 50fe95e

Please sign in to comment.