Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1ff41eb3
Commit
1ff41eb3
authored
Dec 03, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10819 from edx/ned/fix-missing-translator-comments
Fix missing translator comments
parents
86227e77
67c1cdf5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
35 deletions
+25
-35
common/lib/xmodule/xmodule/course_module.py
+1
-1
common/lib/xmodule/xmodule/lti_module.py
+2
-6
lms/djangoapps/branding/api.py
+1
-1
openedx/core/djangoapps/user_api/views.py
+21
-27
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
1ff41eb3
...
@@ -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."
),
),
...
...
common/lib/xmodule/xmodule/lti_module.py
View file @
1ff41eb3
...
@@ -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
)
)
...
...
lms/djangoapps/branding/api.py
View file @
1ff41eb3
...
@@ -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."
...
...
openedx/core/djangoapps/user_api/views.py
View file @
1ff41eb3
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment