diff --git a/lms/templates/header/brand.html b/lms/templates/header/brand.html index 3b473c66c5..6b310be6c3 100644 --- a/lms/templates/header/brand.html +++ b/lms/templates/header/brand.html @@ -6,7 +6,7 @@ <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers # App that handles subdomain specific branding diff --git a/lms/templates/header/header.html b/lms/templates/header/header.html index b65c13df73..3b66bcd4fb 100644 --- a/lms/templates/header/header.html +++ b/lms/templates/header/header.html @@ -6,7 +6,7 @@ <%namespace file='../main.html' import="login_query"/> <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ import waffle from lms.djangoapps.ccx.overrides import get_current_ccx diff --git a/lms/templates/header/navbar-authenticated.html b/lms/templates/header/navbar-authenticated.html index 304a9b2a8b..58c3924ea9 100644 --- a/lms/templates/header/navbar-authenticated.html +++ b/lms/templates/header/navbar-authenticated.html @@ -6,7 +6,7 @@ <%namespace file='../main.html' import="login_query"/> <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers %> diff --git a/lms/templates/header/navbar-logo-header.html b/lms/templates/header/navbar-logo-header.html index 5a74ebcef8..adb12deec1 100644 --- a/lms/templates/header/navbar-logo-header.html +++ b/lms/templates/header/navbar-logo-header.html @@ -5,7 +5,7 @@ <%namespace name='static' file='../static_content.html'/> <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from lms.djangoapps.ccx.overrides import get_current_ccx from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.features.enterprise_support.utils import get_enterprise_learner_generic_name, get_enterprise_learner_portal diff --git a/lms/templates/header/navbar-not-authenticated.html b/lms/templates/header/navbar-not-authenticated.html index 1f99ac9fe3..9bb3023b8f 100644 --- a/lms/templates/header/navbar-not-authenticated.html +++ b/lms/templates/header/navbar-not-authenticated.html @@ -8,7 +8,7 @@ <%! from django.conf import settings from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from six import text_type from openedx.core.djangoapps.user_authn.toggles import should_redirect_to_authn_microfrontend diff --git a/lms/templates/header/user_dropdown.html b/lms/templates/header/user_dropdown.html index 0e4a1b2971..468e774c6f 100644 --- a/lms/templates/header/user_dropdown.html +++ b/lms/templates/header/user_dropdown.html @@ -7,7 +7,7 @@ import json from django.conf import settings from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_image_urls_for_user from openedx.core.djangoapps.user_api.accounts.toggles import should_redirect_to_order_history_microfrontend diff --git a/lms/templates/index.html b/lms/templates/index.html index 09c77faf7c..bfaf865cf6 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -2,7 +2,7 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%! -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 diff --git a/lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html b/lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html index 28008c6834..8baadf9ec4 100644 --- a/lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html +++ b/lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html @@ -1,6 +1,6 @@ <%page args="section_data" expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse %>