Skip to content

Commit

Permalink
Merge pull request openedx#398 from nttks/jenkins/master/54
Browse files Browse the repository at this point in the history
cherry-pick a85b6f9 to master
  • Loading branch information
hachiyanagi-ks committed Oct 5, 2015
2 parents 5487061 + c56de19 commit b645d14
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ga/conf/locale/ja_JP/LC_MESSAGES/gacco.po
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,14 @@ msgstr "半角英数{password_min_length}文字以上"
msgid "It includes single-byte uppercase and lowercase letters, numbers, one or more characters"
msgstr "半角アルファベットの大文字、小文字、数字を1文字以上含めてください"

#: openedx/core/djangoapps/user_api/views.py
msgid "Alphanumeric characters {min_length} or more characters, {max_length} characters or less"
msgstr "半角英数{min_length}文字以上、{max_length}文字以下"

#: openedx/core/djangoapps/user_api/views.py
msgid "I agree to the {platform_name} {terms_of_service}."
msgstr "{terms_of_service}に同意"

#-#-#-#-# Original messages in gacco/templates #-#-#-#-#

#: templates/theme-header.html
Expand Down
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/user_api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def test_register_form_default_fields(self):
u"required": True,
u"label": u"Public username",
u"placeholder": u"JaneDoe",
u"instructions": u"The name that will identify you in your courses - <strong>(cannot be changed later)</strong>",
u"instructions": u"Alphanumeric characters 2 or more characters, 30 characters or less<br>The name that will identify you in your courses - <strong>(cannot be changed later)</strong>",
u"restrictions": {
"min_length": USERNAME_MIN_LENGTH,
"max_length": USERNAME_MAX_LENGTH
Expand Down Expand Up @@ -970,7 +970,7 @@ def test_register_form_third_party_auth_running(self):
u"required": True,
u"label": u"Public username",
u"placeholder": u"JaneDoe",
u"instructions": u"The name that will identify you in your courses - <strong>(cannot be changed later)</strong>",
u"instructions": u"Alphanumeric characters 2 or more characters, 30 characters or less<br>The name that will identify you in your courses - <strong>(cannot be changed later)</strong>",
u"restrictions": {
"min_length": USERNAME_MIN_LENGTH,
"max_length": USERNAME_MAX_LENGTH
Expand Down
2 changes: 2 additions & 0 deletions openedx/core/djangoapps/user_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ def _add_username_field(self, form_desc, required=True):
# Translators: These instructions appear on the registration form, immediately
# below a field meant to hold the user's public username.
username_instructions = _(
u"Alphanumeric characters {min_length} or more characters, {max_length} characters or less"
).format(min_length=2, max_length=30) + "<br>" + _(
u"The name that will identify you in your courses - "
"{bold_start}(cannot be changed later){bold_end}"
).format(bold_start=u'<strong>', bold_end=u'</strong>')
Expand Down

0 comments on commit b645d14

Please sign in to comment.