How does email translation work with django allauth?

让人想犯罪 __ 提交于 2019-12-07 15:11:32

问题


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?

来源:https://stackoverflow.com/questions/22067488/how-does-email-translation-work-with-django-allauth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!