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
%>
diff --git a/lms/templates/instructor/instructor_dashboard_2/data_download.html b/lms/templates/instructor/instructor_dashboard_2/data_download.html
index 20950eca11..4e9a656319 100644
--- a/lms/templates/instructor/instructor_dashboard_2/data_download.html
+++ b/lms/templates/instructor/instructor_dashboard_2/data_download.html
@@ -1,7 +1,7 @@
<%page args="section_data" 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 openedx.core.djangolib.markup import HTML, Text
%>
diff --git a/lms/templates/instructor/instructor_dashboard_2/edit_coupon_modal.html b/lms/templates/instructor/instructor_dashboard_2/edit_coupon_modal.html
index 38d11f282c..8a72fe3065 100644
--- a/lms/templates/instructor/instructor_dashboard_2/edit_coupon_modal.html
+++ b/lms/templates/instructor/instructor_dashboard_2/edit_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
%>
diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html b/lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html
index 1e528699da..bef5d2b0ba 100644
--- a/lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html
+++ b/lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html
@@ -2,7 +2,7 @@
<%!
from django.utils.encoding import escape_uri_path
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
index c756bca275..7f0046a79d 100644
--- a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+++ b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
@@ -3,7 +3,7 @@
<%namespace name='static' file='/static_content.html'/>
<%def name="online_help_token()"><% return "instructor" %>%def>
<%!
-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
%>
diff --git a/lms/templates/instructor/instructor_dashboard_2/set_course_mode_price_modal.html b/lms/templates/instructor/instructor_dashboard_2/set_course_mode_price_modal.html
index 0b30fec6a3..33cd5c4121 100644
--- a/lms/templates/instructor/instructor_dashboard_2/set_course_mode_price_modal.html
+++ b/lms/templates/instructor/instructor_dashboard_2/set_course_mode_price_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
%>
diff --git a/lms/templates/invalid_email_key.html b/lms/templates/invalid_email_key.html
index 3b84cea755..49d19650d6 100644
--- a/lms/templates/invalid_email_key.html
+++ b/lms/templates/invalid_email_key.html
@@ -1,6 +1,6 @@
<%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.djangolib.markup import HTML, Text
%>
diff --git a/lms/templates/lti.html b/lms/templates/lti.html
index c3b99a06d5..2f89182597 100644
--- a/lms/templates/lti.html
+++ b/lms/templates/lti.html
@@ -1,7 +1,7 @@
<%page expression_filter="h"/>
<%!
import json
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
%>