1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 10:51:17 +00:00

modified profile-setting

This commit is contained in:
llj
2012-10-30 11:27:01 +08:00
parent 6b7744c3e8
commit 9f4492ec5b
4 changed files with 14 additions and 16 deletions

View File

@@ -3,12 +3,11 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-29 23:08+0800\n"
"POT-Creation-Date: 2012-10-30 11:19+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -19,7 +18,7 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0\n"
#: views.py:41
msgid "Successfully editting profile."
msgid "Successfully edited profile."
msgstr "修改成功"
#: views.py:47
@@ -28,19 +27,15 @@ msgstr "修改失败"
#: views.py:80 views.py:119
msgid "Has not accepted invitation yet"
msgstr "还未接受邀请"
msgstr "还未接受邀请"
#: templates/profile/profile_base.html:4
#: templates/profile/profile_base.html:4 templates/profile/set_profile.html:6
msgid "Profile Setting"
msgstr "账号设置"
#: templates/profile/set_profile.html:6
msgid "Profile"
msgstr "个人基本信息修改"
msgstr "个人信息设置"
#: templates/profile/set_profile.html:8
msgid "Avatar:"
msgstr "头像: "
msgstr "头像"
#: templates/profile/set_profile.html:9 templates/profile/set_profile.html:10
msgid "Update"
@@ -48,15 +43,15 @@ msgstr "更改"
#: templates/profile/set_profile.html:10
msgid "Password:"
msgstr "密码:"
msgstr "密码"
#: templates/profile/set_profile.html:11
msgid "Nickname:"
msgstr "昵称: "
msgstr "昵称"
#: templates/profile/set_profile.html:16
msgid "About me:"
msgstr "介绍"
msgstr "关于我"
#: templates/profile/set_profile.html:21
#: templates/profile/user_profile.html:36
@@ -79,6 +74,9 @@ msgstr "名字(可选)"
msgid "Note(optional): "
msgstr "备注(可选)"
#~ msgid "Profile"
#~ msgstr "个人基本信息修改"
#~ msgid "Modify Personal Infos"
#~ msgstr "个人基本信息修改"

View File

@@ -3,7 +3,7 @@
{% block right_panel %}
<div id="user-basic-info">
<h2>{% trans "Profile" %}</h2>
<h2>{% trans "Profile Setting" %}</h2>
<form action="" method="post">
<label>{% trans "Avatar:" %}</label>{% avatar request.user.username 60 %}
<a href="{{ SITE_ROOT }}avatar/add/">{% trans "Update" %}</a><br />

View File

@@ -38,7 +38,7 @@ def edit_profile(request):
profile.nickname = nickname
profile.intro = intro
profile.save()
messages.success(request, _(u'Successfully editting profile.'))
messages.success(request, _(u'Successfully edited profile.'))
# refresh nickname cache
refresh_cache(request.user.username)