Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate emails for TPRM and pwd reset #1176

Merged
merged 7 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading