Commit 1ff41eb3 by Ned Batchelder

Merge pull request #10819 from edx/ned/fix-missing-translator-comments

Fix missing translator comments
parents 86227e77 67c1cdf5
...@@ -387,10 +387,10 @@ class CourseFields(object): ...@@ -387,10 +387,10 @@ class CourseFields(object):
# a role created by a course Instructor to enable a person (the "Coach") to manage the custom course for # a role created by a course Instructor to enable a person (the "Coach") to manage the custom course for
# his students. # his students.
display_name=_("Enable CCX"), display_name=_("Enable CCX"),
help=_(
# Translators: Custom Courses for edX (CCX) is an edX feature for re-using course content. CCX Coach is # Translators: Custom Courses for edX (CCX) is an edX feature for re-using course content. CCX Coach is
# a role created by a course Instructor to enable a person (the "Coach") to manage the custom course for # a role created by a course Instructor to enable a person (the "Coach") to manage the custom course for
# his students. # his students.
help=_(
"Allow course instructors to assign CCX Coach roles, and allow coaches to manage Custom Courses on edX." "Allow course instructors to assign CCX Coach roles, and allow coaches to manage Custom Courses on edX."
" When false, Custom Courses cannot be created, but existing Custom Courses will be preserved." " When false, Custom Courses cannot be created, but existing Custom Courses will be preserved."
), ),
......
...@@ -207,18 +207,14 @@ class LTIFields(object): ...@@ -207,18 +207,14 @@ class LTIFields(object):
ask_to_send_username = Boolean( ask_to_send_username = Boolean(
display_name=_("Request user's username"), display_name=_("Request user's username"),
# Translators: This is used to request the user's username for a third party service. # Translators: This is used to request the user's username for a third party service.
help=_( help=_("Select True to request the user's username."),
"Select True to request the user's username."
),
default=False, default=False,
scope=Scope.settings scope=Scope.settings
) )
ask_to_send_email = Boolean( ask_to_send_email = Boolean(
display_name=_("Request user's email"), display_name=_("Request user's email"),
# Translators: This is used to request the user's email for a third party service. # Translators: This is used to request the user's email for a third party service.
help=_( help=_("Select True to request the user's email address."),
"Select True to request the user's email address."
),
default=False, default=False,
scope=Scope.settings scope=Scope.settings
) )
......
...@@ -115,9 +115,9 @@ def _footer_copyright(): ...@@ -115,9 +115,9 @@ def _footer_copyright():
else microsite.get_value('PLATFORM_NAME', settings.PLATFORM_NAME) else microsite.get_value('PLATFORM_NAME', settings.PLATFORM_NAME)
) )
return _(
# Translators: 'EdX', 'edX', and 'Open edX' are trademarks of 'edX Inc.'. # Translators: 'EdX', 'edX', and 'Open edX' are trademarks of 'edX Inc.'.
# Please do not translate any of these trademarks and company names. # Please do not translate any of these trademarks and company names.
return _(
u"\u00A9 {org_name}. All rights reserved except where noted. " u"\u00A9 {org_name}. All rights reserved except where noted. "
u"EdX, Open edX and the edX and Open EdX logos are registered trademarks " u"EdX, Open edX and the edX and Open EdX logos are registered trademarks "
u"or trademarks of edX Inc." u"or trademarks of edX Inc."
......
...@@ -73,9 +73,9 @@ class LoginSessionView(APIView): ...@@ -73,9 +73,9 @@ class LoginSessionView(APIView):
# Translators: These instructions appear on the login form, immediately # Translators: These instructions appear on the login form, immediately
# below a field meant to hold the user's email address. # below a field meant to hold the user's email address.
email_instructions = _( email_instructions = _("The email address you used to register with {platform_name}").format(
u"The email address you used to register with {platform_name}" platform_name=settings.PLATFORM_NAME
).format(platform_name=settings.PLATFORM_NAME) )
form_desc.add_field( form_desc.add_field(
"email", "email",
...@@ -267,15 +267,17 @@ class RegistrationView(APIView): ...@@ -267,15 +267,17 @@ class RegistrationView(APIView):
conflicts = check_account_exists(email=email, username=username) conflicts = check_account_exists(email=email, username=username)
if conflicts: if conflicts:
conflict_messages = { conflict_messages = {
"email": _(
# Translators: This message is shown to users who attempt to create a new # Translators: This message is shown to users who attempt to create a new
# account using an email address associated with an existing account. # account using an email address associated with an existing account.
"email": _( u"It looks like {email_address} belongs to an existing account. "
u"It looks like {email_address} belongs to an existing account. Try again with a different email address." # pylint: disable=line-too-long u"Try again with a different email address."
).format(email_address=email), ).format(email_address=email),
"username": _(
# Translators: This message is shown to users who attempt to create a new # Translators: This message is shown to users who attempt to create a new
# account using a username associated with an existing account. # account using a username associated with an existing account.
"username": _( u"It looks like {username} belongs to an existing account. "
u"It looks like {username} belongs to an existing account. Try again with a different username." u"Try again with a different username."
).format(username=username), ).format(username=username),
} }
errors = { errors = {
...@@ -387,11 +389,11 @@ class RegistrationView(APIView): ...@@ -387,11 +389,11 @@ class RegistrationView(APIView):
# meant to hold the user's public username. # meant to hold the user's public username.
username_label = _(u"Public username") username_label = _(u"Public username")
username_instructions = _(
# Translators: These instructions appear on the registration form, immediately # Translators: These instructions appear on the registration form, immediately
# below a field meant to hold the user's public username. # below a field meant to hold the user's public username.
username_instructions = _(
u"The name that will identify you in your courses - " u"The name that will identify you in your courses - "
"{bold_start}(cannot be changed later){bold_end}" u"{bold_start}(cannot be changed later){bold_end}"
).format(bold_start=u'<strong>', bold_end=u'</strong>') ).format(bold_start=u'<strong>', bold_end=u'</strong>')
# Translators: This example username is used as a placeholder in # Translators: This example username is used as a placeholder in
...@@ -542,9 +544,9 @@ class RegistrationView(APIView): ...@@ -542,9 +544,9 @@ class RegistrationView(APIView):
""" """
# Translators: This phrase appears above a field on the registration form # Translators: This phrase appears above a field on the registration form
# meant to hold the user's reasons for registering with edX. # meant to hold the user's reasons for registering with edX.
goals_label = _( goals_label = _(u"Tell us why you're interested in {platform_name}").format(
u"Tell us why you're interested in {platform_name}" platform_name=settings.PLATFORM_NAME
).format(platform_name=settings.PLATFORM_NAME) )
form_desc.add_field( form_desc.add_field(
"goals", "goals",
...@@ -627,18 +629,14 @@ class RegistrationView(APIView): ...@@ -627,18 +629,14 @@ class RegistrationView(APIView):
# Translators: "Terms of Service" is a legal document users must agree to # Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account. # in order to register a new account.
label = _( label = _(u"I agree to the {platform_name} {terms_of_service}.").format(
u"I agree to the {platform_name} {terms_of_service}."
).format(
platform_name=settings.PLATFORM_NAME, platform_name=settings.PLATFORM_NAME,
terms_of_service=terms_link terms_of_service=terms_link
) )
# Translators: "Terms of Service" is a legal document users must agree to # Translators: "Terms of Service" is a legal document users must agree to
# in order to register a new account. # in order to register a new account.
error_msg = _( error_msg = _(u"You must agree to the {platform_name} {terms_of_service}.").format(
u"You must agree to the {platform_name} {terms_of_service}."
).format(
platform_name=settings.PLATFORM_NAME, platform_name=settings.PLATFORM_NAME,
terms_of_service=terms_link terms_of_service=terms_link
) )
...@@ -674,18 +672,14 @@ class RegistrationView(APIView): ...@@ -674,18 +672,14 @@ class RegistrationView(APIView):
# Translators: "Terms of service" is a legal document users must agree to # Translators: "Terms of service" is a legal document users must agree to
# in order to register a new account. # in order to register a new account.
label = _( label = _(u"I agree to the {platform_name} {terms_of_service}.").format(
u"I agree to the {platform_name} {terms_of_service}."
).format(
platform_name=settings.PLATFORM_NAME, platform_name=settings.PLATFORM_NAME,
terms_of_service=terms_link terms_of_service=terms_link
) )
# Translators: "Terms of service" is a legal document users must agree to # Translators: "Terms of service" is a legal document users must agree to
# in order to register a new account. # in order to register a new account.
error_msg = _( error_msg = _(u"You must agree to the {platform_name} {terms_of_service}.").format(
u"You must agree to the {platform_name} {terms_of_service}."
).format(
platform_name=settings.PLATFORM_NAME, platform_name=settings.PLATFORM_NAME,
terms_of_service=terms_link terms_of_service=terms_link
) )
...@@ -784,9 +778,9 @@ class PasswordResetView(APIView): ...@@ -784,9 +778,9 @@ class PasswordResetView(APIView):
# Translators: These instructions appear on the password reset form, # Translators: These instructions appear on the password reset form,
# immediately below a field meant to hold the user's email address. # immediately below a field meant to hold the user's email address.
email_instructions = _( email_instructions = _(u"The email address you used to register with {platform_name}").format(
u"The email address you used to register with {platform_name}" platform_name=settings.PLATFORM_NAME
).format(platform_name=settings.PLATFORM_NAME) )
form_desc.add_field( form_desc.add_field(
"email", "email",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment