Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Apr 17, 2024
1 parent 7b2cb25 commit ade3597
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -10,7 +10,6 @@
from plone.restapi.deserializer import json_body
from plone.restapi.services import Service
from zExceptions import BadRequest
from zope.i18n import translate

from collective.volto.formsupport import _
from collective.volto.formsupport.utils import (
Expand Down Expand Up @@ -53,7 +52,7 @@ def send_token(self, token, email):
)
msg.add_alternative(content, subtype="html", cte=CTE)

msg["Subject"] = translate(_("Email confirmation code"), context=self.context)
msg["Subject"] = api.portal.translate(_("Email confirmation code"))
msg["From"] = mfrom
msg["To"] = email

Expand Down

0 comments on commit ade3597

Please sign in to comment.