Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix django.utils.translations warnings #33040

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

UsamaSadiq
Copy link
Member

@UsamaSadiq UsamaSadiq commented Aug 17, 2023

Description

  • Fix following deprecation warnings and fixes issue [Django 4.2 Support]: django.utils.translation.ungettext() is deprecated #33037

  • django.utils.translation.ugettext() is deprecated in favor of django.utils.translation.gettext()

  • django.utils.translation.ungettext() is deprecated in favor of django.utils.translation.ngettext()

  • Some instances of these methods are still remaining but they are not producing any deprecation warnings and we need to update both i18n and openedx/Xblock repos first before refactoring those instances to avoid test failures. So these will be refactored in a later PR if needed.

@UsamaSadiq UsamaSadiq marked this pull request as ready for review August 17, 2023 09:54
@UsamaSadiq UsamaSadiq force-pushed the update-deprecated-gettext-methods branch from 1418a4e to 2ad1f38 Compare August 17, 2023 13:03
@UsamaSadiq UsamaSadiq merged commit 2dba053 into master Aug 18, 2023
42 checks passed
@UsamaSadiq UsamaSadiq deleted the update-deprecated-gettext-methods branch August 18, 2023 06:34
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

mehedikhan72 pushed a commit to mehedikhan72/edx-platform that referenced this pull request Aug 24, 2023
* fix: fix ugetext and ngettext deprecation warnings
* fix: fix deprecation warnings from html templates
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.

3 participants