diff --git a/cms/templates/html_error.html b/cms/templates/html_error.html index 5cf980d73d..4493a273cc 100644 --- a/cms/templates/html_error.html +++ b/cms/templates/html_error.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> <%! from django.urls import reverse %> <%block name="content"> diff --git a/cms/templates/widgets/html-edit.html b/cms/templates/widgets/html-edit.html index 15cf178965..8074e0d583 100644 --- a/cms/templates/widgets/html-edit.html +++ b/cms/templates/widgets/html-edit.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index e1152624c9..c70d9bd9c8 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.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'/> <% diff --git a/cms/templates/widgets/tabs-aggregator.html b/cms/templates/widgets/tabs-aggregator.html index 14a9e7b4cc..411f5615a8 100644 --- a/cms/templates/widgets/tabs-aggregator.html +++ b/cms/templates/widgets/tabs-aggregator.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/common/templates/edxnotes_wrapper.html b/common/templates/edxnotes_wrapper.html index e47dc50916..6186e3a626 100644 --- a/common/templates/edxnotes_wrapper.html +++ b/common/templates/edxnotes_wrapper.html @@ -3,7 +3,7 @@ <%! import json -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from common.djangoapps.student.models import anonymous_id_for_user from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json %> diff --git a/common/templates/emails/contact_us_feedback_email_body.txt b/common/templates/emails/contact_us_feedback_email_body.txt index 167ebd8550..23b68ba3f0 100644 --- a/common/templates/emails/contact_us_feedback_email_body.txt +++ b/common/templates/emails/contact_us_feedback_email_body.txt @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> ${_("Feedback Form")} ${_("Email: {email}").format(email=email)} diff --git a/common/templates/emails/contact_us_feedback_email_subject.txt b/common/templates/emails/contact_us_feedback_email_subject.txt index dca9f1b0c5..da6eddc37e 100644 --- a/common/templates/emails/contact_us_feedback_email_subject.txt +++ b/common/templates/emails/contact_us_feedback_email_subject.txt @@ -1 +1 @@ -<%! from django.utils.translation import ugettext as _ %>${_("Feedback from user")} \ No newline at end of file +<%! from django.utils.translation import gettext as _ %>${_("Feedback from user")} \ No newline at end of file diff --git a/common/templates/emails/sync_learner_profile_data_email_change_body.txt b/common/templates/emails/sync_learner_profile_data_email_change_body.txt index 75483715b9..a4bfec67c2 100644 --- a/common/templates/emails/sync_learner_profile_data_email_change_body.txt +++ b/common/templates/emails/sync_learner_profile_data_email_change_body.txt @@ -1,4 +1,4 @@ -<%! 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/common/templates/emails/sync_learner_profile_data_email_change_subject.txt b/common/templates/emails/sync_learner_profile_data_email_change_subject.txt index 48dd43534f..128bad6d3e 100644 --- a/common/templates/emails/sync_learner_profile_data_email_change_subject.txt +++ b/common/templates/emails/sync_learner_profile_data_email_change_subject.txt @@ -1,4 +1,4 @@ -<%! 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 %> ${_("Your {platform_name} account email has been updated").format( diff --git a/common/test/test-theme/lms/templates/static_templates/embargo.html b/common/test/test-theme/lms/templates/static_templates/embargo.html index b7006b0111..20b0b57092 100644 --- a/common/test/test-theme/lms/templates/static_templates/embargo.html +++ b/common/test/test-theme/lms/templates/static_templates/embargo.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 %> <%inherit file="../main.html" /> diff --git a/lms/templates/annotatable.html b/lms/templates/annotatable.html index 7d7015d272..dcd51a0cd5 100644 --- a/lms/templates/annotatable.html +++ b/lms/templates/annotatable.html @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>

diff --git a/lms/templates/api_admin/catalogs/edit.html b/lms/templates/api_admin/catalogs/edit.html index 93f41c1ebf..16a8dab45f 100644 --- a/lms/templates/api_admin/catalogs/edit.html +++ b/lms/templates/api_admin/catalogs/edit.html @@ -3,7 +3,7 @@ <%inherit file="../../main.html"/> <%! 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/api_admin/catalogs/search.html b/lms/templates/api_admin/catalogs/search.html index 9b3d2881ea..e3a07c80e7 100644 --- a/lms/templates/api_admin/catalogs/search.html +++ b/lms/templates/api_admin/catalogs/search.html @@ -3,7 +3,7 @@ <%inherit file="../../main.html"/> <%! from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <%block name="pagetitle">${_("Catalog search")} diff --git a/lms/templates/certificates/_about-edx.html b/lms/templates/certificates/_about-edx.html index d0b06a6c92..70b0308525 100644 --- a/lms/templates/certificates/_about-edx.html +++ b/lms/templates/certificates/_about-edx.html @@ -1,5 +1,5 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>

${company_about_title}

diff --git a/lms/templates/certificates/_accomplishment-banner.html b/lms/templates/certificates/_accomplishment-banner.html index 9e9b1c2cd3..24cfbae734 100644 --- a/lms/templates/certificates/_accomplishment-banner.html +++ b/lms/templates/certificates/_accomplishment-banner.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.js_utils import js_escaped_string %> <%namespace name='static' file='../static_content.html'/> diff --git a/lms/templates/certificates/_accomplishment-header.html b/lms/templates/certificates/_accomplishment-header.html index e787e63635..6604aca2dd 100644 --- a/lms/templates/certificates/_accomplishment-header.html +++ b/lms/templates/certificates/_accomplishment-header.html @@ -1,5 +1,5 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/lms/templates/certificates/_edx-accomplishment-print-help.html b/lms/templates/certificates/_edx-accomplishment-print-help.html index 9622aa7208..eae27d96b0 100644 --- a/lms/templates/certificates/_edx-accomplishment-print-help.html +++ b/lms/templates/certificates/_edx-accomplishment-print-help.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 %>
diff --git a/lms/templates/certificates/invalid.html b/lms/templates/certificates/invalid.html index c67dfcbcfb..f951a454ba 100644 --- a/lms/templates/certificates/invalid.html +++ b/lms/templates/certificates/invalid.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%inherit file="accomplishment-base.html" /> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/lms/templates/certificates/url_unsupported.html b/lms/templates/certificates/url_unsupported.html index 46e22d7e3f..f4f50b2f9c 100644 --- a/lms/templates/certificates/url_unsupported.html +++ b/lms/templates/certificates/url_unsupported.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%inherit file="accomplishment-base.html" /> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/lms/templates/certificates/valid.html b/lms/templates/certificates/valid.html index 4e89b0f251..961317bf34 100644 --- a/lms/templates/certificates/valid.html +++ b/lms/templates/certificates/valid.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%inherit file="accomplishment-base.html" /> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> % if user.is_authenticated and user.id == int(accomplishment_user_id): <%include file="_accomplishment-banner.html" /> diff --git a/lms/templates/conditional_block.html b/lms/templates/conditional_block.html index 4e9311a877..0ed667dd55 100644 --- a/lms/templates/conditional_block.html +++ b/lms/templates/conditional_block.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 %> diff --git a/lms/templates/course_modes/_upgrade_button.html b/lms/templates/course_modes/_upgrade_button.html index 29632bea01..02ff82c101 100644 --- a/lms/templates/course_modes/_upgrade_button.html +++ b/lms/templates/course_modes/_upgrade_button.html @@ -1,7 +1,7 @@ <%page args="content_gating_enabled, course_duration_limit_enabled, min_price, price_before_discount" 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/course_modes/choose.html b/lms/templates/course_modes/choose.html index f942734451..7dc2a00b41 100644 --- a/lms/templates/course_modes/choose.html +++ b/lms/templates/course_modes/choose.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.js_utils import js_escaped_string from openedx.core.djangolib.markup import HTML, Text diff --git a/lms/templates/course_modes/error.html b/lms/templates/course_modes/error.html index 93e384e52f..0e1a3d2e28 100644 --- a/lms/templates/course_modes/error.html +++ b/lms/templates/course_modes/error.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 openedx.core.djangolib.markup import HTML, Text from django.urls import reverse from openedx.core.djangolib.js_utils import js_escaped_string diff --git a/lms/templates/course_modes/fbe.html b/lms/templates/course_modes/fbe.html index 2feaab8d72..048b73242e 100644 --- a/lms/templates/course_modes/fbe.html +++ b/lms/templates/course_modes/fbe.html @@ -6,7 +6,7 @@ <%page expression_filter="h"/> <%inherit file="track_selection.html" /> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML, Text %> <%block name="track_selection_certificate_bullets"> diff --git a/lms/templates/course_modes/track_selection.html b/lms/templates/course_modes/track_selection.html index f8af422e60..d1afba0d5c 100644 --- a/lms/templates/course_modes/track_selection.html +++ b/lms/templates/course_modes/track_selection.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 openedx.core.djangolib.markup import HTML, Text from django.urls import reverse from openedx.core.djangolib.js_utils import js_escaped_string diff --git a/lms/templates/course_modes/unfbe.html b/lms/templates/course_modes/unfbe.html index 3ace0b1504..76189bae01 100644 --- a/lms/templates/course_modes/unfbe.html +++ b/lms/templates/course_modes/unfbe.html @@ -10,7 +10,7 @@ <%page expression_filter="h"/> <%inherit file="track_selection.html" /> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML, Text %> <%block name="track_selection_certificate_bullets"> diff --git a/lms/templates/courseware/accordion.html b/lms/templates/courseware/accordion.html index a1a3e1290b..bfbff20731 100644 --- a/lms/templates/courseware/accordion.html +++ b/lms/templates/courseware/accordion.html @@ -2,7 +2,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 django.conf import settings from openedx.core.djangolib.markup import HTML, Text %> diff --git a/lms/templates/courseware/course_about_sidebar_header.html b/lms/templates/courseware/course_about_sidebar_header.html index b511fe7ce6..7f59ed1f2f 100644 --- a/lms/templates/courseware/course_about_sidebar_header.html +++ b/lms/templates/courseware/course_about_sidebar_header.html @@ -3,7 +3,7 @@ <%! import six -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.urls import reverse from django.conf import settings %> diff --git a/lms/templates/courseware/course_navigation.html b/lms/templates/courseware/course_navigation.html index 6f63e76fce..a0a784c318 100644 --- a/lms/templates/courseware/course_navigation.html +++ b/lms/templates/courseware/course_navigation.html @@ -10,7 +10,7 @@ from lms.djangoapps.course_goals.models import UserActivity from django.conf import settings from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %> <% diff --git a/lms/templates/courseware/course_updates.html b/lms/templates/courseware/course_updates.html index eea03d65f5..777df9e725 100644 --- a/lms/templates/courseware/course_updates.html +++ b/lms/templates/courseware/course_updates.html @@ -1,5 +1,5 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
% for index, update in enumerate(visible_updates):
diff --git a/lms/templates/courseware/courses.html b/lms/templates/courseware/courses.html index db30307367..a3ecb7c58c 100644 --- a/lms/templates/courseware/courses.html +++ b/lms/templates/courseware/courses.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 _ from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json %> <%inherit file="../main.html" /> diff --git a/lms/templates/courseware/courseware-chromeless.html b/lms/templates/courseware/courseware-chromeless.html index aaa94b9100..053fef73a7 100644 --- a/lms/templates/courseware/courseware-chromeless.html +++ b/lms/templates/courseware/courseware-chromeless.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 openedx.core.djangolib.markup import HTML from openedx.core.djangolib.js_utils import js_escaped_string diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index 094a6766c5..28e3e5893e 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -7,7 +7,7 @@ import waffle 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 lms.djangoapps.edxnotes.helpers import is_feature_enabled as is_edxnotes_enabled from openedx.core.djangolib.js_utils import js_escaped_string diff --git a/lms/templates/courseware/error-message.html b/lms/templates/courseware/error-message.html index afad57abfb..d1540aecd7 100644 --- a/lms/templates/courseware/error-message.html +++ b/lms/templates/courseware/error-message.html @@ -2,7 +2,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, Text %> diff --git a/lms/templates/courseware/gradebook.html b/lms/templates/courseware/gradebook.html index c5f4152a02..ef94c51649 100644 --- a/lms/templates/courseware/gradebook.html +++ b/lms/templates/courseware/gradebook.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 %> diff --git a/lms/templates/courseware/program_marketing.html b/lms/templates/courseware/program_marketing.html index 4dd86c484d..656123b472 100644 --- a/lms/templates/courseware/program_marketing.html +++ b/lms/templates/courseware/program_marketing.html @@ -6,7 +6,7 @@ from datetime import datetime from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from mako import exceptions from openedx.core.djangolib.markup import HTML, Text diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html index f0f1850e6e..fd087493d1 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -8,7 +8,7 @@ from datetime import datetime from django.conf import settings 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 pytz import UTC from common.djangoapps.course_modes.models import CourseMode diff --git a/lms/templates/courseware/tab-view.html b/lms/templates/courseware/tab-view.html index 727e7b8b37..319861c8ff 100644 --- a/lms/templates/courseware/tab-view.html +++ b/lms/templates/courseware/tab-view.html @@ -6,7 +6,7 @@ <%! main_css = "css/bootstrap/lms-main.css" %> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML %> diff --git a/lms/templates/courseware/tabs.html b/lms/templates/courseware/tabs.html index 8dd79f22bb..120ac035a2 100644 --- a/lms/templates/courseware/tabs.html +++ b/lms/templates/courseware/tabs.html @@ -2,7 +2,7 @@ <%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 %> <%page args="tab_list, active_page, default_tab, tab_image" expression_filter="h" /> diff --git a/lms/templates/courseware/welcome-back.html b/lms/templates/courseware/welcome-back.html index fe0130ca14..99320e0bd2 100644 --- a/lms/templates/courseware/welcome-back.html +++ b/lms/templates/courseware/welcome-back.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 %> diff --git a/lms/templates/credit_notifications/credit_eligibility_email.html b/lms/templates/credit_notifications/credit_eligibility_email.html index 3a91f26ca4..fa72266415 100644 --- a/lms/templates/credit_notifications/credit_eligibility_email.html +++ b/lms/templates/credit_notifications/credit_eligibility_email.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 %> diff --git a/lms/templates/credit_notifications/credit_eligibility_email.txt b/lms/templates/credit_notifications/credit_eligibility_email.txt index 937c1fb7ed..c9a50a9d62 100644 --- a/lms/templates/credit_notifications/credit_eligibility_email.txt +++ b/lms/templates/credit_notifications/credit_eligibility_email.txt @@ -1,4 +1,4 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %> % if full_name is not UNDEFINED and full_name is not None: ${_(u"Hi {name},").format(name=full_name)} % else: diff --git a/lms/templates/dashboard/_dashboard_credit_info.html b/lms/templates/dashboard/_dashboard_credit_info.html index eaac92e7b2..2f13f6e734 100644 --- a/lms/templates/dashboard/_dashboard_credit_info.html +++ b/lms/templates/dashboard/_dashboard_credit_info.html @@ -1,6 +1,6 @@ <%page args="credit_status" 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/dashboard/_dashboard_third_party_error.html b/lms/templates/dashboard/_dashboard_third_party_error.html index 8903056380..5b9efe0bbd 100644 --- a/lms/templates/dashboard/_dashboard_third_party_error.html +++ b/lms/templates/dashboard/_dashboard_third_party_error.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import gettext as _ %>
diff --git a/lms/templates/dashboard/_entitlement_reason_survey.html b/lms/templates/dashboard/_entitlement_reason_survey.html index 83e5e405e0..ba45364224 100644 --- a/lms/templates/dashboard/_entitlement_reason_survey.html +++ b/lms/templates/dashboard/_entitlement_reason_survey.html @@ -1,6 +1,6 @@ <%page expression_filter="h"/> <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ %>