Simply change it to gettext_lazy. You don't need the deprecated functions, they were for python 2.
Regards, David
On Fri, Dec 10, 2021 at 3:43 PM <ngallen4@gmail.com> wrote:
--It seems Django has removed 'ugettext_lazy`(from django.utils.translation import ugettext_lazy as _) from Django version 4.0.x
How can I handle translation on Django version 4.0.x?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/009b01d7ed80%246da44d40%2448ece7c0%24%40gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgWHc-1AePPpLKZK5umH00fTrcRsHBefu%2Bb37um-mz%3D3kQ%40mail.gmail.com.
No comments:
Post a Comment