Skip to content

Commit

Permalink
translate emails for TPRM and pwd reset (#1176)
Browse files Browse the repository at this point in the history
Co-authored-by: Abder <[email protected]>
  • Loading branch information
eric-intuitem and ab-smith authored Dec 12, 2024
1 parent 4d177a3 commit 366e5e1
Show file tree
Hide file tree
Showing 25 changed files with 831 additions and 336 deletions.
Binary file modified backend/core/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
670 changes: 416 additions & 254 deletions backend/core/locale/fr/LC_MESSAGES/django.po

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion backend/core/management/commands/reset_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from core.models import *
from iam.models import User, Folder
from ciso_assistant.settings import CISO_ASSISTANT_SUPERUSER_EMAIL
from django.utils.translation import gettext_lazy as _


class Command(BaseCommand):
Expand All @@ -13,7 +14,7 @@ def handle(self, *args, **kwargs):
try:
admin.mailing(
email_template_name="registration/password_reset_email.html",
subject="CISO Assistant: Password Reset",
subject=_("CISO Assistant: Password Reset"),
)
self.stdout.write("reset mail sent")
except Exception as e:
Expand Down
Binary file modified backend/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 366e5e1

Please sign in to comment.