How does email translation work with django allaut

2019-05-14 20:35发布

问题:

I'm using the most excellent django-allauth to handle authentication. All is well, but I have an issue with the email translations.

First, allauth is definitely using my template.

  • I ran: django-admin.py makemessages -l ir -i settings.py
  • This created: my_app/locale/ir/LC_MESSAGES/django.po
  • In django.po, I make this change:

    templates/account/email/email_confirmation_subject.txt:3
    msgid "Confirm E-mail Address"
    msgstr "FARSI Confirm E-mail Address"

  • Then to test, a user signs up on a page where the language is set (), but the email sent is not using what I put in the msgstr above.

I'd like to know have I misunderstood something, is this even how it's supposed to work?