From b2113696c91fcdd7608dc82e84026b37cb0cf17e Mon Sep 17 00:00:00 2001 From: Jawayria Date: Tue, 14 Dec 2021 18:42:43 +0500 Subject: [PATCH] fix: replace 'ugettext' with 'gettext' in lms --- lms/templates/main.html | 2 +- lms/templates/manage_user_standing.html | 2 +- lms/templates/modal/_modal-settings-language.html | 2 +- lms/templates/module-error.html | 2 +- lms/templates/page_banner.html | 2 +- lms/templates/preview_menu.html | 2 +- lms/templates/problem_notifications.html | 2 +- lms/templates/provider_login.html | 2 +- lms/templates/secondary_email_change_failed.html | 2 +- lms/templates/secondary_email_change_successful.html | 2 +- lms/templates/split_test_author_view.html | 2 +- lms/templates/staff_problem_info.html | 2 +- lms/templates/static_htmlbook.html | 2 +- lms/templates/static_pdfbook.html | 2 +- lms/templates/staticbook.html | 2 +- lms/templates/support/feature_based_enrollments.html | 2 +- lms/templates/support/index.html | 2 +- lms/templates/survey/survey.html | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lms/templates/main.html b/lms/templates/main.html index 83416317ba..4cb8485d5d 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -18,7 +18,7 @@ import six from lms.djangoapps.branding import api as branding_api from django.urls import reverse from django.utils.http import urlquote_plus -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.utils.translation import get_language_bidi from lms.djangoapps.courseware.access import has_access from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers diff --git a/lms/templates/manage_user_standing.html b/lms/templates/manage_user_standing.html index a775924fca..75dd3d6540 100644 --- a/lms/templates/manage_user_standing.html +++ b/lms/templates/manage_user_standing.html @@ -3,7 +3,7 @@ <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.js_utils import js_escaped_string %> diff --git a/lms/templates/modal/_modal-settings-language.html b/lms/templates/modal/_modal-settings-language.html index 797cdcbad3..45fc6a0940 100644 --- a/lms/templates/modal/_modal-settings-language.html +++ b/lms/templates/modal/_modal-settings-language.html @@ -2,7 +2,7 @@ <%namespace name='static' file='../static_content.html'/> <%! from openedx.core.djangolib.markup import HTML, Text -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse %> diff --git a/lms/templates/module-error.html b/lms/templates/module-error.html index d022597965..90a25e3a2c 100644 --- a/lms/templates/module-error.html +++ b/lms/templates/module-error.html @@ -1,6 +1,6 @@ <%page expression_filter="h" /> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML, Text %> <%namespace name='static' file='static_content.html'/> diff --git a/lms/templates/page_banner.html b/lms/templates/page_banner.html index 1ecebd5ab0..24ca946b3b 100644 --- a/lms/templates/page_banner.html +++ b/lms/templates/page_banner.html @@ -5,7 +5,7 @@ <%namespace name='static' file='static_content.html'/> <% online_help_token = self.online_help_token() if hasattr(self, 'online_help_token') else None %> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML from openedx.core.djangoapps.util.user_messages import PageLevelMessages, UserMessage, UserMessageType # app that handles site status messages diff --git a/lms/templates/preview_menu.html b/lms/templates/preview_menu.html index fa26e6bc4f..95cf58edb2 100644 --- a/lms/templates/preview_menu.html +++ b/lms/templates/preview_menu.html @@ -3,7 +3,7 @@ <%page args="active_page=None" expression_filter="h" /> <%namespace name='static' file='/static_content.html'/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.conf import settings from openedx.core.djangolib.js_utils import dump_js_escaped_json from openedx.core.djangolib.markup import HTML, Text diff --git a/lms/templates/problem_notifications.html b/lms/templates/problem_notifications.html index afa717fbc9..7b44387f19 100644 --- a/lms/templates/problem_notifications.html +++ b/lms/templates/problem_notifications.html @@ -1,6 +1,6 @@ <%page expression_filter="h" args="notification_name, notification_type, notification_icon, notification_message, should_enable_next_hint, is_hidden=True"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>