Template for Password Reset Email
Hi,
I have a list and user account set with French as the preferred language.
Most message emails (such as the Welcome email) all arrive in French, but not the Password Reset email (shown below) - it arrives in English.
I'm guessing that there may not be an .mo file for it.
I don't see a template for the Password Reset email in the list's administration settings.
Is it possible to create a template for it? Something like "list:user:action:reset"?
My thinking is, if creating a template is possible, to (a) write it in French for this list; and (b) rewrite it differently as it's confusing some users.
Regards, Mark
Subject: [lists.domain.com] Password Reset Email
Hello from lists.domain.com!
You are receiving this email because you or someone else has requested a password for your user account. However, we do not have any record of a user with email imark@myemail.com in our database.
This mail can be safely ignored if you did not request a password reset.
If it was you, you can sign up for an account using the link below.
https://lists.domain.com/accounts/signup/
Thank you for using lists.domain.com! lists.domain.com
On 11/14/24 13:57, Mark wrote:
I have a list and user account set with French as the preferred language.
Most message emails (such as the Welcome email) all arrive in French, but not the Password Reset email (shown below) - it arrives in English.
I'm guessing that there may not be an .mo file for it.
This message comes from django-allauth. there is a French message
catalog for it. These are in site-packages/allauth/locale/fr/LC_MESSAGES
and should be good. You can always run django-admin compilemessages
to
update all the .mo files for all the projects.
However, the issue is probably that Django doesn't get the language context from the list's preferred language. In fact, the password reset is not in a list context at all. See https://docs.djangoproject.com/en/5.1/topics/i18n/translation/#how-django-di... for how it determines the language to serve.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark
-
Mark Sapiro