diff --git a/cms/templates/widgets/deprecated-course-key-warning.html b/cms/templates/widgets/deprecated-course-key-warning.html index 80aa94b9c6..33de5e8d64 100644 --- a/cms/templates/widgets/deprecated-course-key-warning.html +++ b/cms/templates/widgets/deprecated-course-key-warning.html @@ -4,7 +4,7 @@ from datetime import datetime from datetime import date from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.translation_utils import translate_date diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html index f91e238f32..d4a1da6478 100644 --- a/cms/templates/widgets/footer.html +++ b/cms/templates/widgets/footer.html @@ -1,7 +1,7 @@ ## mako <%page expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse from datetime import datetime from django.conf import settings diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html index e0be8f62d3..eb4431ac0d 100644 --- a/cms/templates/widgets/header.html +++ b/cms/templates/widgets/header.html @@ -5,7 +5,7 @@ from six.moves.urllib.parse import quote 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 cms.djangoapps.contentstore import toggles from cms.djangoapps.contentstore.utils import get_pages_and_resources_url from openedx.core.djangoapps.discussions.config.waffle import ENABLE_PAGES_AND_RESOURCES_MICROFRONTEND diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 42643c0ba0..4eedb550af 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%page expression_filter="h"/> <%namespace name='static' file='../static_content.html'/> diff --git a/cms/templates/widgets/sock.html b/cms/templates/widgets/sock.html index a34de4bfb5..e858917c9d 100644 --- a/cms/templates/widgets/sock.html +++ b/cms/templates/widgets/sock.html @@ -1,7 +1,7 @@ <%page expression_filter="h" args="online_help_token" /> <%! from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%namespace file="sock_links.html" import="get_sock_links" /> diff --git a/cms/templates/widgets/sock_links.html b/cms/templates/widgets/sock_links.html index d4d1d21d23..f5e752ede4 100644 --- a/cms/templates/widgets/sock_links.html +++ b/cms/templates/widgets/sock_links.html @@ -1,7 +1,7 @@ <%page expression_filter="h" /> <%! from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%namespace file="sock_links_extra.html" import="get_sock_links_extra" /> diff --git a/cms/templates/widgets/sock_links_extra.html b/cms/templates/widgets/sock_links_extra.html index bfb305c29f..e301f2813b 100644 --- a/cms/templates/widgets/sock_links_extra.html +++ b/cms/templates/widgets/sock_links_extra.html @@ -1,7 +1,7 @@ <%page expression_filter="h" /> <%! from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%def name="get_sock_links_extra()"> diff --git a/cms/templates/widgets/user_dropdown.html b/cms/templates/widgets/user_dropdown.html index 8e91704d78..0ec00257ff 100644 --- a/cms/templates/widgets/user_dropdown.html +++ b/cms/templates/widgets/user_dropdown.html @@ -3,7 +3,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 edx_django_utils.monitoring import set_custom_attribute from common.djangoapps.student.roles import GlobalStaff %> diff --git a/cms/templates/widgets/video/codemirror-edit.html b/cms/templates/widgets/video/codemirror-edit.html index b044667b3d..e8c45d635c 100644 --- a/cms/templates/widgets/video/codemirror-edit.html +++ b/cms/templates/widgets/video/codemirror-edit.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%page args="tabName" expression_filter="h"/>
diff --git a/cms/templates/widgets/video/transcripts.html b/cms/templates/widgets/video/transcripts.html index 5d007e7736..a456325be7 100644 --- a/cms/templates/widgets/video/transcripts.html +++ b/cms/templates/widgets/video/transcripts.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%namespace name='static' file='../../static_content.html'/> <%page args="tabName" expression_filter="h"/>