mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 01:15:20 +00:00
update trnaslation function name to new default (#3497)
This commit is contained in:
1 parent
9182f62bc4
commit
a77f21b17e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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!')
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user