Skip to content

Commit

Permalink
Merge pull request openedx#835 from proversity-org/proversity/ENH-agr…
Browse files Browse the repository at this point in the history
…eement-switch

ENH: setting to remove platform name from registration page in honor link
  • Loading branch information
Nico van Niekerk authored Jul 11, 2018
2 parents 512383b + a9b8285 commit ecfe56c
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions openedx/core/djangoapps/user_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,17 +797,29 @@ def _add_honor_code_field(self, form_desc, required=True):
terms_label = _(u"Terms of Service and Honor Code")
terms_link = marketing_link("HONOR")

# Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account.
label = Text(_(
u"I agree to the {platform_name} {terms_of_service_link_start}{terms_of_service}{terms_of_service_link_end}"
)).format(
platform_name=configuration_helpers.get_value("platform_name", settings.PLATFORM_NAME),
terms_of_service=terms_label,
terms_of_service_link_start=HTML("<a href='{terms_link}' target='_blank'>").format(terms_link=terms_link),
terms_of_service_link_end=HTML("</a>"),

)
if configuration_helpers.get_value("REGISTER_DISPLAY_ORG_NAME", True):
# Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account.
label = Text(_(
u"I agree to the {platform_name} {terms_of_service_link_start}{terms_of_service}{terms_of_service_link_end}"
)).format(
platform_name=configuration_helpers.get_value("platform_name", settings.PLATFORM_NAME),
terms_of_service=terms_label,
terms_of_service_link_start=HTML("<a href='{terms_link}' target='_blank'>").format(terms_link=terms_link),
terms_of_service_link_end=HTML("</a>"),
)
else:
# Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account.
label = Text(_(
u"I agree to the {terms_of_service_link_start}{terms_of_service}{terms_of_service_link_end}"
)).format(
terms_of_service=terms_label,
terms_of_service_link_start=HTML("<a href='{terms_link}' target='_blank'>").format(terms_link=terms_link),
terms_of_service_link_end=HTML("</a>"),
)


# Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account.
Expand Down

0 comments on commit ecfe56c

Please sign in to comment.