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

Fixed bug in i18n

This commit is contained in:
zhengxie
2012-10-29 23:12:06 +08:00
parent 5621d23694
commit 6b7744c3e8
8 changed files with 73 additions and 37 deletions

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-29 14:20+0800\n"
"POT-Creation-Date: 2012-10-29 23:08+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"
@@ -30,31 +30,35 @@ msgstr "修改失败"
msgid "Has not accepted invitation yet"
msgstr "他还未接受邀请。"
#: templates/profile/set_profile.html:9
msgid "Modify Personal Infos"
#: templates/profile/profile_base.html:4
msgid "Profile Setting"
msgstr "账号设置"
#: templates/profile/set_profile.html:6
msgid "Profile"
msgstr "个人基本信息修改"
#: templates/profile/set_profile.html:11
msgid "Avatar: "
#: templates/profile/set_profile.html:8
msgid "Avatar:"
msgstr "头像: "
#: templates/profile/set_profile.html:12 templates/profile/set_profile.html:13
msgid "Change"
#: templates/profile/set_profile.html:9 templates/profile/set_profile.html:10
msgid "Update"
msgstr "更改"
#: templates/profile/set_profile.html:13
msgid "Password: "
#: templates/profile/set_profile.html:10
msgid "Password:"
msgstr "密码:"
#: templates/profile/set_profile.html:14
msgid "Nickname: "
#: templates/profile/set_profile.html:11
msgid "Nickname:"
msgstr "昵称: "
#: templates/profile/set_profile.html:19
msgid "Introduction: "
msgstr "一句话介绍: "
#: templates/profile/set_profile.html:16
msgid "About me:"
msgstr "介绍:"
#: templates/profile/set_profile.html:24
#: templates/profile/set_profile.html:21
#: templates/profile/user_profile.html:36
msgid "Submit"
msgstr "提交"
@@ -74,3 +78,12 @@ msgstr "名字(可选)"
#: templates/profile/user_profile.html:34
msgid "Note(optional): "
msgstr "备注(可选)"
#~ msgid "Modify Personal Infos"
#~ msgstr "个人基本信息修改"
#~ msgid "Change"
#~ msgstr "更改"
#~ msgid "Introduction: "
#~ msgstr "一句话介绍: "

View File

@@ -1,7 +1,7 @@
{% extends "myhome_base.html" %}
{% load i18n %}
{% block title %}{% tran 'Profile Setting' %}{% endblock %}
{% block title %}{% trans "Profile Setting" %}{% endblock %}
{% block subnav %}

View File

@@ -3,22 +3,22 @@
{% block right_panel %}
<div id="user-basic-info">
<h2>{% trans 'Profile' %}</h2>
<h2>{% trans "Profile" %}</h2>
<form action="" method="post">
<label>{% trans 'Avatar:' %}</label>{% avatar request.user.username 60 %}
<a href="{{ SITE_ROOT }}avatar/add/">{% trans 'Update' %}</a><br />
<label>{% trans 'Password:' %}</label><a href="{{ SITE_ROOT }}accounts/password/change/">{% trans 'Update' %}</a><br/>
<label>{% trans 'Nickname:' %}</label><input type="text" name="nickname" value="{{ form.data.nickname }}" class="text-input" />
<label>{% trans "Avatar:" %}</label>{% avatar request.user.username 60 %}
<a href="{{ SITE_ROOT }}avatar/add/">{% trans "Update" %}</a><br />
<label>{% trans "Password:" %}</label><a href="{{ SITE_ROOT }}accounts/password/change/">{% trans "Update" %}</a><br/>
<label>{% trans "Nickname:" %}</label><input type="text" name="nickname" value="{{ form.data.nickname }}" class="text-input" />
{% for error in form.nickname.errors %}
<span class="error">{{ error|escape }}</span>
{% endfor %}
<br/>
<label>{% trans 'About me:' %}></label><textarea name="intro">{{ form.data.intro }}</textarea>
<label>{% trans "About me:" %}</label><textarea name="intro">{{ form.data.intro }}</textarea>
{% for error in form.intro.errors %}
<span class="error">{{ error|escape }}</span>
{% endfor %}
<br/>
<input type="submit" value="{% trans 'Submit' %}" class="submit" />
<input type="submit" value="{% trans "Submit" %}" class="submit" />
</form>
</div>
{% endblock %}