diff --git a/lms/templates/main.html b/lms/templates/main.html index 83416317ba..4cb8485d5d 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -18,7 +18,7 @@ import six from lms.djangoapps.branding import api as branding_api from django.urls import reverse from django.utils.http import urlquote_plus -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.utils.translation import get_language_bidi from lms.djangoapps.courseware.access import has_access from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers diff --git a/lms/templates/manage_user_standing.html b/lms/templates/manage_user_standing.html index a775924fca..75dd3d6540 100644 --- a/lms/templates/manage_user_standing.html +++ b/lms/templates/manage_user_standing.html @@ -3,7 +3,7 @@ <%! 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/modal/_modal-settings-language.html b/lms/templates/modal/_modal-settings-language.html index 797cdcbad3..45fc6a0940 100644 --- a/lms/templates/modal/_modal-settings-language.html +++ b/lms/templates/modal/_modal-settings-language.html @@ -2,7 +2,7 @@ <%namespace name='static' file='../static_content.html'/> <%! from openedx.core.djangolib.markup import HTML, Text -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse %> diff --git a/lms/templates/module-error.html b/lms/templates/module-error.html index d022597965..90a25e3a2c 100644 --- a/lms/templates/module-error.html +++ b/lms/templates/module-error.html @@ -1,6 +1,6 @@ <%page expression_filter="h" /> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML, Text %> <%namespace name='static' file='static_content.html'/> diff --git a/lms/templates/page_banner.html b/lms/templates/page_banner.html index 1ecebd5ab0..24ca946b3b 100644 --- a/lms/templates/page_banner.html +++ b/lms/templates/page_banner.html @@ -5,7 +5,7 @@ <%namespace name='static' file='static_content.html'/> <% online_help_token = self.online_help_token() if hasattr(self, 'online_help_token') else None %> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML from openedx.core.djangoapps.util.user_messages import PageLevelMessages, UserMessage, UserMessageType # app that handles site status messages diff --git a/lms/templates/preview_menu.html b/lms/templates/preview_menu.html index fa26e6bc4f..95cf58edb2 100644 --- a/lms/templates/preview_menu.html +++ b/lms/templates/preview_menu.html @@ -3,7 +3,7 @@ <%page args="active_page=None" 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 django.conf import settings from openedx.core.djangolib.js_utils import dump_js_escaped_json from openedx.core.djangolib.markup import HTML, Text diff --git a/lms/templates/problem_notifications.html b/lms/templates/problem_notifications.html index afa717fbc9..7b44387f19 100644 --- a/lms/templates/problem_notifications.html +++ b/lms/templates/problem_notifications.html @@ -1,6 +1,6 @@ <%page expression_filter="h" args="notification_name, notification_type, notification_icon, notification_message, should_enable_next_hint, is_hidden=True"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
-<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> diff --git a/lms/templates/secondary_email_change_failed.html b/lms/templates/secondary_email_change_failed.html index 42f64f8751..0a4da3ec6d 100644 --- a/lms/templates/secondary_email_change_failed.html +++ b/lms/templates/secondary_email_change_failed.html @@ -1,5 +1,5 @@ <%page expression_filter="h"/> -<%! 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/secondary_email_change_successful.html b/lms/templates/secondary_email_change_successful.html index feeaefaf19..f309edaf46 100644 --- a/lms/templates/secondary_email_change_successful.html +++ b/lms/templates/secondary_email_change_successful.html @@ -1,7 +1,7 @@ <%page expression_filter="h"/> <%inherit file="main.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/split_test_author_view.html b/lms/templates/split_test_author_view.html index 88396f094c..0c90081cdd 100644 --- a/lms/templates/split_test_author_view.html +++ b/lms/templates/split_test_author_view.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.markup import HTML, Text %> diff --git a/lms/templates/staff_problem_info.html b/lms/templates/staff_problem_info.html index 167df3702a..849032b15b 100644 --- a/lms/templates/staff_problem_info.html +++ b/lms/templates/staff_problem_info.html @@ -1,7 +1,7 @@ <%page 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 from openedx.core.djangolib.js_utils import js_escaped_string from six import text_type diff --git a/lms/templates/static_htmlbook.html b/lms/templates/static_htmlbook.html index fb2a3aa71f..09a52dab24 100644 --- a/lms/templates/static_htmlbook.html +++ b/lms/templates/static_htmlbook.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML from openedx.core.djangolib.js_utils import ( diff --git a/lms/templates/static_pdfbook.html b/lms/templates/static_pdfbook.html index b73d3f15d4..813db47a2d 100644 --- a/lms/templates/static_pdfbook.html +++ b/lms/templates/static_pdfbook.html @@ -1,5 +1,5 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> diff --git a/lms/templates/staticbook.html b/lms/templates/staticbook.html index 7112cf40ce..e17baf6548 100644 --- a/lms/templates/staticbook.html +++ b/lms/templates/staticbook.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML from openedx.core.djangolib.js_utils import ( diff --git a/lms/templates/support/feature_based_enrollments.html b/lms/templates/support/feature_based_enrollments.html index 159e63b487..f2fb7b6dd4 100644 --- a/lms/templates/support/feature_based_enrollments.html +++ b/lms/templates/support/feature_based_enrollments.html @@ -1,7 +1,7 @@ <%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'/> diff --git a/lms/templates/support/index.html b/lms/templates/support/index.html index 1bd5a05451..8435ab4f70 100644 --- a/lms/templates/support/index.html +++ b/lms/templates/support/index.html @@ -3,7 +3,7 @@ <%! import six from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%namespace name='static' file='../static_content.html'/> diff --git a/lms/templates/survey/survey.html b/lms/templates/survey/survey.html index 6cb7e73ed7..a34d8ca790 100644 --- a/lms/templates/survey/survey.html +++ b/lms/templates/survey/survey.html @@ -3,7 +3,7 @@ <%namespace name='static' file='../static_content.html'/> <%! import six -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse from django.utils import html from openedx.core.djangolib.markup import Text, HTML