How does email translation work with django allauth?

I use the most excellent django-allauth for authentication. All is well, but I have a problem with wire transfers.

Firstly, allauth definitely uses 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
     msgstr "Confirm email address"
     msgstr "FARSI Confirm E-mail Address"

  • Then, to check, the user subscribes to the page in which the language () is installed, but the sent message does not use what I put in msgstr above.

I would like to know that I didn’t understand something, is that even how it should work?

+3
source share

Source: https://habr.com/ru/post/1652641/


All Articles