Skip to content

Commit

Permalink
fix translati
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed May 9, 2024
1 parent d9bac65 commit 7a40ad2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from zope.annotation.interfaces import IAnnotations
from zope.component import adapter
from zope.component import getAdapter
from zope.i18n import translate
from zope.interface import Interface
from zope.interface import implementer

Expand Down Expand Up @@ -255,7 +254,7 @@ def __init__(self, prenotazione, request):

@property
def message_history(self) -> str:
return translate(
return api.portal.translate(
_(
"history_email_manager_notification_sent",
default="Email notification was sent to booking manager",
Expand Down Expand Up @@ -365,7 +364,7 @@ def message_subject(self) -> str:
booking_code = self.prenotazione.getBookingCode()
date = self.prenotazione.booking_date.strftime("%d-%m-%Y %H:%M")

booking_canceled = translate(
booking_canceled = api.portal.translate(
_("booking_canceled_mail_subject_part", default="Booking canceled: "),
context=self.request,
)
Expand Down

0 comments on commit 7a40ad2

Please sign in to comment.