From 852246db8c8e2a9e069cd695e3a2bf3b23c1770d Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Wed, 16 Aug 2023 17:07:23 +0500 Subject: [PATCH] fix: replace ugettext with gettext (#33022) --- cms/templates/html_error.html | 2 +- cms/templates/widgets/html-edit.html | 2 +- cms/templates/widgets/metadata-edit.html | 2 +- cms/templates/widgets/tabs-aggregator.html | 2 +- common/templates/edxnotes_wrapper.html | 2 +- common/templates/emails/contact_us_feedback_email_body.txt | 2 +- common/templates/emails/contact_us_feedback_email_subject.txt | 2 +- .../emails/sync_learner_profile_data_email_change_body.txt | 2 +- .../emails/sync_learner_profile_data_email_change_subject.txt | 2 +- .../test/test-theme/lms/templates/static_templates/embargo.html | 2 +- lms/templates/annotatable.html | 2 +- lms/templates/api_admin/catalogs/edit.html | 2 +- lms/templates/api_admin/catalogs/search.html | 2 +- lms/templates/certificates/_about-edx.html | 2 +- lms/templates/certificates/_accomplishment-banner.html | 2 +- lms/templates/certificates/_accomplishment-header.html | 2 +- lms/templates/certificates/_edx-accomplishment-print-help.html | 2 +- lms/templates/certificates/invalid.html | 2 +- lms/templates/certificates/url_unsupported.html | 2 +- lms/templates/certificates/valid.html | 2 +- lms/templates/conditional_block.html | 2 +- lms/templates/course_modes/_upgrade_button.html | 2 +- lms/templates/course_modes/choose.html | 2 +- lms/templates/course_modes/error.html | 2 +- lms/templates/course_modes/fbe.html | 2 +- lms/templates/course_modes/track_selection.html | 2 +- lms/templates/course_modes/unfbe.html | 2 +- lms/templates/courseware/accordion.html | 2 +- lms/templates/courseware/course_about_sidebar_header.html | 2 +- lms/templates/courseware/course_navigation.html | 2 +- lms/templates/courseware/course_updates.html | 2 +- lms/templates/courseware/courses.html | 2 +- lms/templates/courseware/courseware-chromeless.html | 2 +- lms/templates/courseware/courseware.html | 2 +- lms/templates/courseware/error-message.html | 2 +- lms/templates/courseware/gradebook.html | 2 +- lms/templates/courseware/program_marketing.html | 2 +- lms/templates/courseware/progress.html | 2 +- lms/templates/courseware/tab-view.html | 2 +- lms/templates/courseware/tabs.html | 2 +- lms/templates/courseware/welcome-back.html | 2 +- .../credit_notifications/credit_eligibility_email.html | 2 +- lms/templates/credit_notifications/credit_eligibility_email.txt | 2 +- lms/templates/dashboard/_dashboard_credit_info.html | 2 +- lms/templates/dashboard/_dashboard_third_party_error.html | 2 +- lms/templates/dashboard/_entitlement_reason_survey.html | 2 +- lms/templates/discussion/_discussion_inline.html | 2 +- lms/templates/discussion/_discussion_inline_studio.html | 2 +- lms/templates/discussion/_filter_dropdown.html | 2 +- lms/templates/discussion/_thread_list_template.html | 2 +- lms/templates/discussion/_user_profile.html | 2 +- lms/templates/enrollment/course_enrollment_message.html | 2 +- lms/templates/financial-assistance/financial-assistance.html | 2 +- lms/templates/hidden_content.html | 2 +- lms/templates/index_overlay.html | 2 +- .../instructor/instructor_dashboard_2/certificates.html | 2 +- .../instructor/instructor_dashboard_2/cohort_management.html | 2 +- .../instructor/instructor_dashboard_2/course_info.html | 2 +- .../instructor/instructor_dashboard_2/data_download_2.html | 2 +- .../instructor_dashboard_2/data_download_2/certificates.html | 2 +- .../instructor_dashboard_2/data_download_2/grading.html | 2 +- .../instructor_dashboard_2/data_download_2/problem_report.html | 2 +- .../instructor_dashboard_2/data_download_2/reports.html | 2 +- .../instructor_dashboard_2/discussions_management.html | 2 +- lms/templates/instructor/instructor_dashboard_2/extensions.html | 2 +- .../generate_registarion_codes_modal.html | 2 +- .../invalidate_registration_code_modal.html | 2 +- lms/templates/instructor/instructor_dashboard_2/membership.html | 2 +- lms/templates/instructor/instructor_dashboard_2/send_email.html | 2 +- .../instructor/instructor_dashboard_2/special_exams.html | 2 +- .../instructor/instructor_dashboard_2/student_admin.html | 2 +- .../learner_dashboard/_dashboard_navigation_courses.html | 2 +- lms/templates/learner_dashboard/program_details.html | 2 +- lms/templates/learner_dashboard/programs.html | 2 +- lms/templates/navigation/bootstrap/navbar-authenticated.html | 2 +- lms/templates/navigation/bootstrap/navbar-logo-header.html | 2 +- lms/templates/navigation/navbar-authenticated.html | 2 +- lms/templates/navigation/navbar-logo-header.html | 2 +- lms/templates/navigation/navbar-not-authenticated.html | 2 +- lms/templates/navigation/navigation.html | 2 +- lms/templates/peer_grading/peer_grading.html | 2 +- lms/templates/peer_grading/peer_grading_closed.html | 2 +- lms/templates/peer_grading/peer_grading_problem.html | 2 +- .../registration/account_activation_sidebar_notice.html | 2 +- lms/templates/registration/password_reset_complete.html | 2 +- lms/templates/registration/password_reset_confirm.html | 2 +- lms/templates/registration/password_reset_done.html | 2 +- lms/templates/split_test_staff_view.html | 2 +- lms/templates/static_templates/404.html | 2 +- lms/templates/static_templates/429.html | 2 +- lms/templates/static_templates/about.html | 2 +- lms/templates/static_templates/blog.html | 2 +- lms/templates/static_templates/contact.html | 2 +- lms/templates/static_templates/donate.html | 2 +- lms/templates/static_templates/embargo.html | 2 +- lms/templates/static_templates/faq.html | 2 +- lms/templates/static_templates/help.html | 2 +- lms/templates/static_templates/honor.html | 2 +- lms/templates/static_templates/jobs.html | 2 +- lms/templates/static_templates/media-kit.html | 2 +- lms/templates/static_templates/news.html | 2 +- lms/templates/static_templates/press.html | 2 +- lms/templates/static_templates/privacy.html | 2 +- lms/templates/static_templates/server-down.html | 2 +- lms/templates/static_templates/server-error.html | 2 +- lms/templates/static_templates/server-overloaded.html | 2 +- lms/templates/static_templates/tos.html | 2 +- lms/templates/student_account/account_settings.html | 2 +- lms/templates/student_account/finish_auth.html | 2 +- lms/templates/student_account/login_and_register.html | 2 +- lms/templates/studio_render_paged_children_view.html | 2 +- lms/templates/support/certificates.html | 2 +- lms/templates/support/contact_us.html | 2 +- lms/templates/support/enrollment.html | 2 +- lms/templates/support/entitlement.html | 2 +- lms/templates/support/link_program_enrollments.html | 2 +- lms/templates/support/manage_user.html | 2 +- lms/templates/support/program_enrollments_inspector.html | 2 +- lms/templates/verify_student/_verification_help.html | 2 +- lms/templates/verify_student/incourse_reverify.html | 2 +- lms/templates/verify_student/missed_deadline.html | 2 +- lms/templates/verify_student/pay_and_verify.html | 2 +- lms/templates/verify_student/reverify.html | 2 +- lms/templates/verify_student/reverify_not_allowed.html | 2 +- lms/templates/widgets/html-edit.html | 2 +- lms/templates/word_cloud.html | 2 +- .../templates/dark_lang/preview-language-fragment.html | 2 +- openedx/core/lib/license/templates/license.html | 2 +- .../templates/course_bookmarks/course-bookmarks.html | 2 +- .../templates/course_experience/course-dates-fragment.html | 2 +- .../templates/course_experience/course-sock-fragment.html | 2 +- .../templates/course_experience/course-updates-fragment.html | 2 +- .../templates/course_experience/dates-summary.html | 2 +- .../static/learner_profile/templates/third_party_auth.html | 2 +- .../learner_profile/learner-achievements-fragment.html | 2 +- .../templates/learner_profile/learner_profile.html | 2 +- themes/red-theme/lms/templates/footer.html | 2 +- .../lms/templates/courseware/course_about_sidebar_header.html | 2 +- themes/stanford-style/lms/templates/emails/activation_email.txt | 2 +- .../lms/templates/emails/confirm_email_change.txt | 2 +- themes/stanford-style/lms/templates/emails/email_change.txt | 2 +- .../stanford-style/lms/templates/emails/reject_name_change.txt | 2 +- .../lms/templates/embargo/default_courseware.html | 2 +- .../lms/templates/embargo/default_enrollment.html | 2 +- themes/stanford-style/lms/templates/footer.html | 2 +- themes/stanford-style/lms/templates/index.html | 2 +- themes/stanford-style/lms/templates/register-form.html | 2 +- themes/stanford-style/lms/templates/register-shib.html | 2 +- themes/stanford-style/lms/templates/register-sidebar.html | 2 +- themes/stanford-style/lms/templates/static_templates/about.html | 2 +- .../stanford-style/lms/templates/static_templates/embargo.html | 2 +- themes/stanford-style/lms/templates/static_templates/tos.html | 2 +- xmodule/capa/templates/choicetext.html | 2 +- xmodule/capa/templates/codeinput.html | 2 +- 154 files changed, 154 insertions(+), 154 deletions(-) diff --git a/cms/templates/html_error.html b/cms/templates/html_error.html index 5cf980d73d31..4493a273cc02 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 15cf1789657c..8074e0d58359 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 e1152624c970..c70d9bd9c8dd 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 14a9e7b4cc4c..411f5615a889 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 e47dc5091600..6186e3a6260f 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 167ebd855041..23b68ba3f0ec 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 dca9f1b0c50f..da6eddc37eaa 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 75483715b900..a4bfec67c2fe 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 48dd43534f2e..128bad6d3eac 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 b7006b011139..20b0b5709221 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 7d7015d27287..dcd51a0cd52e 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 93f41c1ebf54..16a8dab45f22 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 9b3d2881ea0f..e3a07c80e717 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 d0b06a6c9254..70b030852519 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 9e9b1c2cd3e6..24cfbae7341f 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 e787e63635c3..6604aca2dd83 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 9622aa720810..eae27d96b031 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 c67dfcbcfb43..f951a454ba10 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 46e22d7e3fcd..f4f50b2f9c57 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 4e89b0f25157..961317bf345f 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 4e9311a87734..0ed667dd558d 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 29632bea01bc..02ff82c101ba 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 f94273445132..7dc2a00b412a 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 93e384e52f4f..0e1a3d2e28d0 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 2feaab8d7296..048b73242ecb 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 f8af422e604a..d1afba0d5c3d 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 3ace0b1504e8..76189bae0154 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 a1a3e1290bff..bfbff20731a2 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 b511fe7ce6ec..7f59ed1f2ffb 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 6f63e76fce48..a0a784c31813 100644 --- a/lms/templates/courseware/course_navigation.html +++ b/lms/templates/courseware/course_navigation.html @@ -10,7 +10,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 _ %> <% diff --git a/lms/templates/courseware/course_updates.html b/lms/templates/courseware/course_updates.html index eea03d65f54a..777df9e725d5 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 db303073676d..a3ecb7c58cf5 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 aaa94b91004d..053fef73a788 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 094a6766c5e0..28e3e5893e2a 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -7,7 +7,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 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 afad57abfb3e..d1540aecd749 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 c5f4152a02a3..ef94c5164990 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 4dd86c484d05..656123b47234 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 f0f1850e6eaa..fd087493d13d 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -8,7 +8,7 @@ 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 727e7b8b37fc..319861c8ffb6 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 8dd79f22bb56..120ac035a205 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 fe0130ca14a1..99320e0bd297 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 3a91f26ca4f7..fa722664153c 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 937c1fb7edae..c9a50a9d62e2 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 eaac92e7b28e..2f13f6e734b9 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 89030563804b..5b9efe0bbddd 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 83e5e405e043..ba45364224d8 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 _ %>