diff --git a/lms/templates/resubscribe.html b/lms/templates/resubscribe.html
index c635d5d3c0..91bc9e36c0 100644
--- a/lms/templates/resubscribe.html
+++ b/lms/templates/resubscribe.html
@@ -1,7 +1,7 @@
<%page expression_filter="h"/>
<%!
from django.urls import reverse
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from django.conf import settings
%>
diff --git a/lms/templates/unsubscribe.html b/lms/templates/unsubscribe.html
index f4db2a39de..41a7002c40 100644
--- a/lms/templates/unsubscribe.html
+++ b/lms/templates/unsubscribe.html
@@ -2,7 +2,7 @@
<%!
from openedx.core.djangolib.markup import HTML, Text
from django.urls import reverse
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from django.conf import settings
%>
<%inherit file="main.html" />
diff --git a/lms/templates/user_dropdown.html b/lms/templates/user_dropdown.html
index c2762515b2..454a898433 100644
--- a/lms/templates/user_dropdown.html
+++ b/lms/templates/user_dropdown.html
@@ -4,7 +4,7 @@
<%!
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.features.enterprise_support.utils import get_enterprise_learner_generic_name
diff --git a/lms/templates/using.html b/lms/templates/using.html
index fbf4d44dcc..00763159a9 100644
--- a/lms/templates/using.html
+++ b/lms/templates/using.html
@@ -1,5 +1,5 @@
<%page expression_filter="h"/>
-<%! from django.utils.translation import ugettext as _ %>
+<%! from django.utils.translation import gettext as _ %>
${_('Using the system')}
diff --git a/lms/templates/ux/reference/bootstrap/course-skeleton.html b/lms/templates/ux/reference/bootstrap/course-skeleton.html
index d292d3a8cc..d78b8b625e 100644
--- a/lms/templates/ux/reference/bootstrap/course-skeleton.html
+++ b/lms/templates/ux/reference/bootstrap/course-skeleton.html
@@ -11,7 +11,7 @@
<%block name="bodyclass">course-skeleton%block>
<%!
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
%>
<%block name="content">
diff --git a/lms/templates/video.html b/lms/templates/video.html
index 51fcddd3ea..29faca1320 100644
--- a/lms/templates/video.html
+++ b/lms/templates/video.html
@@ -1,7 +1,7 @@
<%page expression_filter="h"/>
<%!
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string
)
diff --git a/lms/templates/widgets/cookie-consent.html b/lms/templates/widgets/cookie-consent.html
index 88077f1b68..f6132d3937 100644
--- a/lms/templates/widgets/cookie-consent.html
+++ b/lms/templates/widgets/cookie-consent.html
@@ -1,8 +1,8 @@
<%page expression_filter="h"/>
-<%! from django.utils.translation import ugettext as _ %>
+<%! from django.utils.translation import gettext as _ %>
<%namespace name='static' file='../static_content.html'/>
-
+
@@ -33,14 +33,14 @@ window.addEventListener("load", function(){
$(".cc-window").on('keydown', function(event) {
if (event.keyCode == 27 ){
popup.close();
- }
+ }
});
$("#dismiss").on('keydown', function(event) {
if (event.keyCode == 13 || event.keyCode == 32 ) {
popup.onButtonClick(event);
}
- });
+ });
});
});
diff --git a/lms/templates/widgets/footer-language-selector.html b/lms/templates/widgets/footer-language-selector.html
index 4182a89e64..043fbba961 100644
--- a/lms/templates/widgets/footer-language-selector.html
+++ b/lms/templates/widgets/footer-language-selector.html
@@ -5,7 +5,7 @@
<%!
from babel import Locale
from django.conf import settings
- from django.utils.translation import ugettext as _
+ from django.utils.translation import gettext as _
from openedx.core.djangoapps.lang_pref import COOKIE_DURATION
from openedx.core.djangoapps.lang_pref.api import released_languages
diff --git a/lms/templates/wiki/includes/article_menu.html b/lms/templates/wiki/includes/article_menu.html
index 0c5fd0d034..c268171fd3 100644
--- a/lms/templates/wiki/includes/article_menu.html
+++ b/lms/templates/wiki/includes/article_menu.html
@@ -2,7 +2,7 @@
<%page expression_filter="h"/>
<%!
from django.urls import reverse
- from django.utils.translation import ugettext as _
+ from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from wiki.core.permissions import can_change_permissions
%>
diff --git a/lms/templates/wiki/includes/breadcrumbs.html b/lms/templates/wiki/includes/breadcrumbs.html
index 3746d57ecc..6e4ae2a733 100644
--- a/lms/templates/wiki/includes/breadcrumbs.html
+++ b/lms/templates/wiki/includes/breadcrumbs.html
@@ -2,7 +2,7 @@
<%page expression_filter="h"/>
<%!
from django.urls import reverse
- from django.utils.translation import ugettext as _
+ from django.utils.translation import gettext as _
%>
%if urlpath is not Undefined and urlpath: