update trnaslation function name to new default (#3497)

This commit is contained in:
Matthias Mair 2022-08-07 23:50:36 +02:00 committed by GitHub
parent 9182f62bc4
commit a77f21b17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ Any user-facing strings *must* be passed through the translation engine.
For strings exposed via Python code, use the following format:
```python
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
user_facing_string = _('This string will be exposed to the translation engine!')
```

View File

@ -1,7 +1,7 @@
"""Core set of Notifications as a Plugin."""
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from allauth.account.models import EmailAddress