Skip to content

Replace uggettext_lazy with gettext_lazy to support Django 4.0#34

Open
za wants to merge 2 commits into
kbytesys:masterfrom
za:replace-uggettext
Open

Replace uggettext_lazy with gettext_lazy to support Django 4.0#34
za wants to merge 2 commits into
kbytesys:masterfrom
za:replace-uggettext

Conversation

@za

@za za commented Jul 16, 2022

Copy link
Copy Markdown
Contributor

django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are removed.

https://docs.djangoproject.com/en/4.0/releases/4.0/#features-removed-in-4-0

Django trac ticket: https://code.djangoproject.com/ticket/30165

@za

za commented Aug 16, 2022

Copy link
Copy Markdown
Contributor Author

Hi @kbytesys do you have any comment/feedback on this PR? Thank you.

@thisisayush

Copy link
Copy Markdown

+1 on this, this is needed!

@valbertovc

Copy link
Copy Markdown

+1 will be a great improvement.

@subaquatic-pierre

Copy link
Copy Markdown

+1 Please update this!

@subaquatic-pierre subaquatic-pierre left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@za

za commented Aug 18, 2023

Copy link
Copy Markdown
Contributor Author

Oh, it's been a year. Can we merge it soon? @subaquatic-pierre

@iRhonin

iRhonin commented May 28, 2024

Copy link
Copy Markdown

+1

@becory

becory commented Oct 14, 2024

Copy link
Copy Markdown

@kbytesys Can you merge it? I have this problem, too.

@za

za commented Oct 14, 2024

Copy link
Copy Markdown
Contributor Author

✏️ FTR currently, Django stable version is 5.x.x

@becory

becory commented Oct 14, 2024

Copy link
Copy Markdown

This is the solution I found to add this code to resolve this problem until it is merged.

add them in settings.py in front of "INSTALLED_APPS" variable.

import django.utils.translation as original_translation
from django.utils.translation import gettext_lazy

original_translation.ugettext_lazy = gettext_lazy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants