diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c736418892..e9b01c6517 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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!') ``` diff --git a/InvenTree/plugin/builtin/integration/core_notifications.py b/InvenTree/plugin/builtin/integration/core_notifications.py index 6c0cee5f02..d21dc8c46f 100644 --- a/InvenTree/plugin/builtin/integration/core_notifications.py +++ b/InvenTree/plugin/builtin/integration/core_notifications.py @@ -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