mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
update trnaslation function name to new default (#3497)
This commit is contained in:
parent
9182f62bc4
commit
a77f21b17e
@ -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:
|
For strings exposed via Python code, use the following format:
|
||||||
|
|
||||||
```python
|
```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!')
|
user_facing_string = _('This string will be exposed to the translation engine!')
|
||||||
```
|
```
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Core set of Notifications as a Plugin."""
|
"""Core set of Notifications as a Plugin."""
|
||||||
|
|
||||||
from django.template.loader import render_to_string
|
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
|
from allauth.account.models import EmailAddress
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user