From f72a6e3a79a5b7d1f0746310769803dd8adba7da Mon Sep 17 00:00:00 2001 From: Jawayria Date: Tue, 14 Dec 2021 18:30:53 +0500 Subject: [PATCH] fix: replace 'ugettext' with 'gettext' in lms --- lms/templates/api_admin/api_access_request_form.html | 2 +- lms/templates/api_admin/catalogs/list.html | 2 +- lms/templates/api_admin/status.html | 4 ++-- lms/templates/api_admin/terms_of_service.html | 2 +- lms/templates/bookmark_button.html | 2 +- lms/templates/bulk_email/confirm_unsubscribe.html | 2 +- lms/templates/bulk_email/unsubscribe_success.html | 2 +- lms/templates/calculator/toggle_calculator.html | 6 +++--- lms/templates/ccx/coach_dashboard.html | 2 +- lms/templates/ccx/enrollment.html | 2 +- lms/templates/ccx/grading_policy.html | 2 +- lms/templates/ccx/schedule.html | 2 +- lms/templates/ccx/student_admin.html | 2 +- lms/templates/certificates/_accomplishment-rendering.html | 2 +- lms/templates/certificates/accomplishment-base.html | 2 +- lms/templates/certificates/server-error.html | 2 +- lms/templates/course.html | 2 +- lms/templates/courses_list.html | 2 +- 18 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lms/templates/api_admin/api_access_request_form.html b/lms/templates/api_admin/api_access_request_form.html index 615aec5765..9d9928d50d 100644 --- a/lms/templates/api_admin/api_access_request_form.html +++ b/lms/templates/api_admin/api_access_request_form.html @@ -2,7 +2,7 @@ <%page expression_filter="h"/> <%inherit file="../main.html"/> <%! - from django.utils.translation import ugettext as _ + from django.utils.translation import gettext as _ %> <%block name="pagetitle">${_("API Access Request")} diff --git a/lms/templates/api_admin/catalogs/list.html b/lms/templates/api_admin/catalogs/list.html index e463fca319..22b8800814 100644 --- a/lms/templates/api_admin/catalogs/list.html +++ b/lms/templates/api_admin/catalogs/list.html @@ -3,7 +3,7 @@ <%inherit file="../../main.html"/> <%! 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/api_admin/status.html b/lms/templates/api_admin/status.html index 791aeec8d2..a25fe938ad 100644 --- a/lms/templates/api_admin/status.html +++ b/lms/templates/api_admin/status.html @@ -2,7 +2,7 @@ <%page expression_filter="h"/> <%inherit file="../main.html"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangoapps.api_admin.models import ApiAccessRequest from openedx.core.djangolib.markup import HTML, Text @@ -43,7 +43,7 @@ ${_("API Access Request Status")}

${_('If you would like to regenerate your API client information, please use the form below.')}

- + % endif
diff --git a/lms/templates/api_admin/terms_of_service.html b/lms/templates/api_admin/terms_of_service.html index 233c16327d..b1c3fc4eee 100644 --- a/lms/templates/api_admin/terms_of_service.html +++ b/lms/templates/api_admin/terms_of_service.html @@ -3,7 +3,7 @@ <%inherit file="../main.html"/> <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%block name="pagetitle">${_("API Terms of Service")} diff --git a/lms/templates/bookmark_button.html b/lms/templates/bookmark_button.html index 57cba749dd..840819e0d8 100644 --- a/lms/templates/bookmark_button.html +++ b/lms/templates/bookmark_button.html @@ -2,7 +2,7 @@ <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %>
diff --git a/lms/templates/bulk_email/confirm_unsubscribe.html b/lms/templates/bulk_email/confirm_unsubscribe.html index 2e50dd6444..6899dcb4d4 100644 --- a/lms/templates/bulk_email/confirm_unsubscribe.html +++ b/lms/templates/bulk_email/confirm_unsubscribe.html @@ -1,7 +1,7 @@ <%page expression_filter="h"/> <%! from openedx.core.djangolib.markup import Text, HTML -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%inherit file="../main.html" /> diff --git a/lms/templates/bulk_email/unsubscribe_success.html b/lms/templates/bulk_email/unsubscribe_success.html index 53e3e51a91..3ee5ee9b90 100644 --- a/lms/templates/bulk_email/unsubscribe_success.html +++ b/lms/templates/bulk_email/unsubscribe_success.html @@ -2,7 +2,7 @@ <%! from openedx.core.djangolib.markup import HTML, Text from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%inherit file="../main.html" /> diff --git a/lms/templates/calculator/toggle_calculator.html b/lms/templates/calculator/toggle_calculator.html index 96547d9dc0..37531ee3a3 100644 --- a/lms/templates/calculator/toggle_calculator.html +++ b/lms/templates/calculator/toggle_calculator.html @@ -1,7 +1,7 @@ <%page expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse from openedx.core.djangolib.markup import HTML, Text %> @@ -10,13 +10,13 @@ from openedx.core.djangolib.markup import HTML, Text - +
- +