aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-06-07 14:00:41 +0800
committerWeitian LI <liweitianux@gmail.com>2014-06-07 14:00:41 +0800
commit0d0f12f76606009c7dc85da46e0531b5d155499e (patch)
treedfc1f8312e68a1233dd275a3ec5d4a2926080114
parentbd5a374373581e16dc6489ba6216cd3743acc3e7 (diff)
downloaddjango-skaschool-0d0f12f76606009c7dc85da46e0531b5d155499e.tar.bz2
Updated 'profile.html' and zh_CN locale messages
* updated profile.html to show 'sjtu_id' and 'sjtu_initpass' info and show a related alert * updated zh_CN locale messages
-rw-r--r--account/templates/account/profile.html40
-rw-r--r--locale/zh_CN/LC_MESSAGES/django.mobin6488 -> 6877 bytes
-rw-r--r--locale/zh_CN/LC_MESSAGES/django.po178
3 files changed, 129 insertions, 89 deletions
diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html
index d2b73e7..f739930 100644
--- a/account/templates/account/profile.html
+++ b/account/templates/account/profile.html
@@ -19,14 +19,21 @@
{# display alert if 'reason' empty, or transcript required but not provided #}
{% if not profile.reason %}
- <div class="alert alert-warning">
- “为什么参加”的信息是我们审核的重要参考,请您请及时填写。
- </div>
+ <div class="alert alert-warning">
+ “为什么参加”的信息是我们审核的重要参考,请您请及时填写。
+ </div>
{% endif %}
{% if profile.is_transcript_required and not profile.transcript %}
- <div class="alert alert-warning">
- “成绩单”是我们审核本科生(大三及以下)和决定资助的重要参考,请您请及时上传。
- </div>
+ <div class="alert alert-warning">
+ “成绩单”是我们审核本科生(大三及以下)和决定资助的重要参考,请您请及时上传。
+ </div>
+ {% endif %}
+ {% if profile.sjtu_id and profile.sjtu_initpass %}
+ <div class="alert alert-info">
+ <p><strong>欢迎参加第二届中国SKA暑期学校</strong></p>
+ <p>上海交通大学教务处已为您分配了<strong>学号</strong>和<strong>初始密码</strong>。请您尽快访问<a href="http://summer.jwc.sjtu.edu.cn/" class="alert-link" target="_blank">上海交通大学夏季学期(http://summer.jwc.sjtu.edu.cn/)</a>,点击<a href="http://i.jwc.sjtu.edu.cn/summerlogin.aspx" class="alert-link" target="_blank">校外同学报名</a>并登录,然后根据要求补充个人资料。其他操作请等待我们的后续通知。</p>
+ <p>在上海交通大学夏季学期系统中注册并完善资料,能够帮助我们将您添加到学校的课程安排中,并帮助您在完成SKA暑期学校学习后顺利办理<strong>结业证书</strong>和<strong>课程学分证明</strong>。</p>
+ </div>
{% endif %}
<table class="table table-striped table-bordered table-hover">
@@ -117,6 +124,27 @@
{% endif %}
</td>
</tr>
+ {# sjtu student id & inital password #}
+ <tr>
+ <th class="profile-sjtuid">SJTU学号</th>
+ <td class="profile-sjtuid-data">
+ {% if profile.sjtu_id %}
+ {{ profile.sjtu_id }}
+ {% else %}
+ <span class="glyphicon glyphicon-remove"></span> <span class="label label-warning">无</span>
+ {% endif %}
+ </td>
+ </tr>
+ <tr>
+ <th class="profile-sjtuinitpass">SJTU初始密码</th>
+ <td class="profile-sjtuinitpass-data">
+ {% if profile.sjtu_initpass %}
+ {{ profile.sjtu_initpass }}
+ {% else %}
+ <span class="glyphicon glyphicon-remove"></span> <span class="label label-warning">无</span>
+ {% endif %}
+ </td>
+ </tr>
{# user uploaded files #}
{% if userfiles %}
<tr>
diff --git a/locale/zh_CN/LC_MESSAGES/django.mo b/locale/zh_CN/LC_MESSAGES/django.mo
index 453dabe..1853439 100644
--- a/locale/zh_CN/LC_MESSAGES/django.mo
+++ b/locale/zh_CN/LC_MESSAGES/django.mo
Binary files differ
diff --git a/locale/zh_CN/LC_MESSAGES/django.po b/locale/zh_CN/LC_MESSAGES/django.po
index 67f2a6b..644ad8c 100644
--- a/locale/zh_CN/LC_MESSAGES/django.po
+++ b/locale/zh_CN/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-03 00:20+0800\n"
+"POT-Creation-Date: 2014-06-07 13:09+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Weitian LI <liweitianux@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,141 +18,147 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-#: account/admin.py:63
+#: account/admin.py:77
msgid "1 user was successfully approved."
msgstr "1个用户被成功审定."
-#: account/admin.py:65
-#, python-format
+#: account/admin.py:79
msgid "%(num)s users were successfully approved."
-msgstr "%(num)s个用户被成功审定."
+msgstr "%(num)s 个用户被成功审定."
-#: account/admin.py:67
+#: account/admin.py:81
msgid "Approve users"
msgstr "审定用户"
-#: account/admin.py:75
+#: account/admin.py:89
msgid "1 user was successfully sponsored."
msgstr "1个用户被成功资助."
-#: account/admin.py:77
-#, python-format
+#: account/admin.py:91
msgid "%(num)s users were successfully sponsored."
-msgstr "%(num)s个用户被成功资助."
+msgstr "%(num)s 个用户被成功资助."
-#: account/admin.py:79
+#: account/admin.py:93
msgid "Sponsor users"
msgstr "资助用户"
-#: account/admin.py:87
+#: account/admin.py:101
msgid "1 user was successfully cancelled approval."
msgstr "1个用户的审定被取消."
-#: account/admin.py:89
-#, python-format
+#: account/admin.py:103
msgid "%(num)s users were successfully cancelled approval."
-msgstr "%(num)s个用户的审定被取消."
+msgstr "%(num)s 个用户的审定被取消."
-#: account/admin.py:91
+#: account/admin.py:105
msgid "Cancel approve users"
msgstr "取消用户审定"
-#: account/admin.py:99
+#: account/admin.py:113
msgid "1 user was successfully cancelled sponsor."
msgstr "1个用户的资助被取消."
-#: account/admin.py:101
-#, python-format
+#: account/admin.py:115
msgid "%(num)s users were successfully cancelled sponsor."
-msgstr "%(num)s个用户的资助被取消."
+msgstr "%(num)s 个用户的资助被取消."
-#: account/admin.py:103
+#: account/admin.py:117
msgid "Cancel sponsor users"
msgstr "取消用户资助"
-#: account/admin.py:111
+#: account/admin.py:125
msgid "1 user was successfully reset approval."
msgstr "1个用户的审定被重置."
-#: account/admin.py:113
-#, python-format
+#: account/admin.py:127
msgid "%(num)s users were successfully reset approval."
-msgstr "%(num)s个用户的审定被重置."
+msgstr "%(num)s 个用户的审定被重置."
-#: account/admin.py:115
+#: account/admin.py:129
msgid "Reset approve users"
msgstr "重置用户审定"
-#: account/admin.py:123
+#: account/admin.py:137
msgid "1 user was successfully reset sponsor."
msgstr "1个用户的资助被重置."
-#: account/admin.py:125
-#, python-format
+#: account/admin.py:139
msgid "%(num)s users were successfully reset sponsor."
-msgstr "%(num)s个用户的审定被重置."
+msgstr "%(num)s 个用户的审定被重置."
-#: account/admin.py:127
+#: account/admin.py:141
msgid "Reset sponsor users"
msgstr "重置用户资助"
-#: account/admin.py:136
+#: account/admin.py:150
msgid "1 user was successfully marked as checkin."
msgstr "1个用户被标记为已报到."
-#: account/admin.py:138
-#, python-format
+#: account/admin.py:152
msgid "%(num)s users were successfully marked as checkin."
-msgstr "%(num)s个用户被标记为已报到."
+msgstr "%(num)s 个用户被标记为已报到."
-#: account/admin.py:140
+#: account/admin.py:154
msgid "Mark users as checked in"
msgstr "标记用户为已报到"
-#: account/admin.py:148
+#: account/admin.py:162
msgid "1 user was marked as not checkin."
msgstr "1个用户被标记为未报到."
-#: account/admin.py:150
-#, python-format
+#: account/admin.py:164
msgid "%(num)s users were marked as not checkin."
-msgstr "%(num)s个用户被标记为未报到."
+msgstr "%(num)s 个用户被标记为未报到."
-#: account/admin.py:152
+#: account/admin.py:166
msgid "Mark users as not checked in"
msgstr "标记用户为未报到"
-#: account/admin.py:160
+#: account/admin.py:174
msgid "1 user was reset status of checkin."
msgstr "1个用户的报到状态被重置."
-#: account/admin.py:162
-#, python-format
+#: account/admin.py:176
msgid "%(num)s users were reset status of checkin."
-msgstr "%(num)s个用户的报到状态被重置."
+msgstr "%(num)s 个用户的报到状态被重置."
-#: account/admin.py:164
+#: account/admin.py:178
msgid "Reset users checkin status"
msgstr "重置用户报到状态"
-#: account/admin.py:173 account/forms.py:58 account/forms.py:103
+#: account/admin.py:186
+msgid "ID"
+msgstr "ID"
+
+#: account/admin.py:194 account/forms.py:80 account/forms.py:125
msgid "E-mail"
msgstr "邮箱"
-#: account/admin.py:186 account/admin.py:205
+#: account/admin.py:207 account/admin.py:226
msgid "Null"
msgstr "无"
-#: account/admin.py:188 account/models.py:80
+#: account/admin.py:209 account/models.py:80
msgid "Transcript"
msgstr "成绩单"
-#: account/admin.py:207
+#: account/admin.py:228
msgid "Attachments"
msgstr "附件"
+#: account/admin.py:245 account/models.py:88
+msgid "Is approved"
+msgstr "是否审定"
+
+#: account/admin.py:261 account/models.py:90
+msgid "Is sponsored"
+msgstr "是否资助"
+
+#: account/admin.py:277 account/models.py:92
+msgid "Is checkin"
+msgstr "是否报到"
+
#: account/extra.py:52
-#, python-format
msgid "Please keep filesize under %(maxsize)s. Current filesize %(filesize)s"
msgstr "请使文件小于%(maxsize)s. 当前大小%(filesize)s"
@@ -160,47 +166,57 @@ msgstr "请使文件小于%(maxsize)s. 当前大小%(filesize)s"
msgid "Unsupported filetype"
msgstr "不支持的文件类型"
-#: account/forms.py:26 account/models.py:71
+#: account/forms.py:28 account/models.py:71
msgid "Name"
msgstr "姓名"
-#: account/forms.py:27 account/models.py:72
+#: account/forms.py:29 account/models.py:72
msgid "Gender"
msgstr "性别"
-#: account/forms.py:28 account/models.py:73
+#: account/forms.py:30 account/models.py:73
msgid "Institute (and major)"
msgstr "单位(及专业)"
-#: account/forms.py:29 account/models.py:74
+#: account/forms.py:31 account/models.py:74
msgid "Identity"
msgstr "身份"
-#: account/forms.py:30
+#: account/forms.py:32
msgid "Captcha"
msgstr "验证码"
-#: account/forms.py:54
+#: account/forms.py:61
+msgid ""
+"4-30 characters. Start with letters and underscore. Contains letters, digits "
+"and _.@+- characters."
+msgstr "4-30个字符;必须以字母或下划线开头;只能包含字母、数字和_.@+-字符。"
+
+#: account/forms.py:65
+msgid "A user with that username already exists."
+msgstr ""
+
+#: account/forms.py:76
msgid "Username"
msgstr "用户名"
-#: account/forms.py:55
+#: account/forms.py:77
msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
msgstr "请只使用英文字母数字和@.+-_字符"
-#: account/forms.py:56
+#: account/forms.py:78
msgid "Is update email"
msgstr "是否更新邮箱地址"
-#: account/forms.py:64
+#: account/forms.py:86
msgid "Username not exists"
msgstr "该用户名不存在"
-#: account/forms.py:72
+#: account/forms.py:94
msgid "Email is required"
msgstr "必须填写邮箱地址"
-#: account/forms.py:146
+#: account/forms.py:168
msgid "Transcript is required."
msgstr "必须上传成绩单"
@@ -288,7 +304,7 @@ msgstr "副教授"
msgid "Professor"
msgstr "教授"
-#: account/models.py:70 account/models.py:246
+#: account/models.py:70 account/models.py:255
msgid "User"
msgstr "用户"
@@ -306,56 +322,52 @@ msgstr "本科生(大三及以下)需要上传成绩单. 推荐上传PDF格式."
msgid "Supplement"
msgstr "补充说明"
-#: account/models.py:88
-msgid "Is approved"
-msgstr "是否审定"
-
-#: account/models.py:90
-msgid "Is sponsored"
-msgstr "是否资助"
+#: account/models.py:95
+msgid "SJTU student ID"
+msgstr "SJTU学号"
-#: account/models.py:92
-msgid "Is checkin"
-msgstr "是否报到"
+#: account/models.py:97
+msgid "SJTU initial password"
+msgstr "SJTU初始密码"
-#: account/models.py:96
+#: account/models.py:101
msgid "user profile"
msgstr "用户信息"
-#: account/models.py:97
+#: account/models.py:102
msgid "user profiles"
msgstr "用户信息"
-#: account/models.py:208
+#: account/models.py:215
msgid "attachments"
msgstr "附件"
-#: account/models.py:247 archive/models.py:18 notice/models.py:14
+#: account/models.py:256 archive/models.py:18 notice/models.py:14
#: notice/models.py:52
msgid "Title"
msgstr "标题"
-#: account/models.py:248 archive/models.py:22 notice/models.py:53
+#: account/models.py:257 archive/models.py:22 notice/models.py:53
msgid "Description"
msgstr "描述"
-#: account/models.py:250 archive/models.py:23
+#: account/models.py:259 archive/models.py:23
msgid "File"
msgstr "文件"
-#: account/models.py:254 archive/models.py:67 notice/models.py:41
+#: account/models.py:263 archive/models.py:67 notice/models.py:41
msgid "Created time"
msgstr "创建时间"
-#: account/models.py:256
+#: account/models.py:265
msgid "Modified time"
msgstr "修改时间"
-#: account/models.py:259
+#: account/models.py:268
msgid "user file"
msgstr "用户文件"
-#: account/models.py:260
+#: account/models.py:269
msgid "user files"
msgstr "用户文件"