diff --git a/openedx/core/djangoapps/user_authn/views/registration_form.py b/openedx/core/djangoapps/user_authn/views/registration_form.py index efee92e700b7..1d6293a9def7 100644 --- a/openedx/core/djangoapps/user_authn/views/registration_form.py +++ b/openedx/core/djangoapps/user_authn/views/registration_form.py @@ -16,6 +16,7 @@ from django.utils.translation import gettext as _ from django_countries import countries from eventtracking import tracker +from openedx_filters.learning.filters import StudentTermsOfServiceRequested from common.djangoapps import third_party_auth from common.djangoapps.edxmako.shortcuts import marketing_link @@ -1093,6 +1094,12 @@ def _add_terms_of_service_field(self, form_desc, required=True): tos_link_end=HTML(""), ) + # .. filter_implemented_name: StudentTermsOfServiceRequested + # .. filter_type: org.openedx.learning.student.terms_of_service.requested.v1 + custom_label = StudentTermsOfServiceRequested.run_filter(label=label) + + label = custom_label or label + # Translators: "Terms of service" is a legal document users must agree to # in order to register a new account. error_msg = _("You must agree to the {platform_name} {terms_of_service}").format(