Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Nov 27, 2024
1 parent 7b51f9b commit f047e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
2.8.2 (unreleased)
------------------

- Nothing changed yet.
- Fix translation mechanism for exceptions.
[folix-01]


2.8.1 (2024-11-27)
Expand Down
8 changes: 4 additions & 4 deletions src/redturtle/prenotazioni/browser/bookings_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __call__(self):
)
except ValueError:
raise BadRequest(
api.portal_translate(_("Badly composed `booking_start_from` value"))
api.portal.translate(_("Badly composed `booking_start_from` value"))
)

if not booking_start_to:
Expand All @@ -218,7 +218,7 @@ def __call__(self):
)
except ValueError:
raise BadRequest(
api.portal_translate(_("Badly composed `booking_start_to` value"))
api.portal.translate(_("Badly composed `booking_start_to` value"))
)

if booking_creation_from:
Expand All @@ -228,7 +228,7 @@ def __call__(self):
)
except ValueError:
raise BadRequest(
api.portal_translate(
api.portal.translate(
_("Badly composed `booking_creation_from` value")
)
)
Expand All @@ -240,7 +240,7 @@ def __call__(self):
)
except ValueError:
raise BadRequest(
api.portal_translate(
api.portal.translate(
_("Badly composed `booking_creation_to` value")
)
)
Expand Down

0 comments on commit f047e2f

Please sign in to comment.