1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

i18n for user_profile_get

This commit is contained in:
zhengxie
2012-10-31 17:04:11 +08:00
parent 677d62e7fe
commit a3f8b4c2a5
4 changed files with 25 additions and 71 deletions

Binary file not shown.

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-31 16:13+0800\n" "POT-Creation-Date: 2012-10-31 17:00+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -254,6 +254,7 @@ msgstr "密码:"
#: templates/snippets/group_recommend_form.html:23 #: templates/snippets/group_recommend_form.html:23
#: templates/snippets/repo_create_form.html:23 #: templates/snippets/repo_create_form.html:23
#: templates/snippets/repo_share_form.html:18 #: templates/snippets/repo_share_form.html:18
#: templates/snippets/user_profile_html.html:33
msgid "Submit" msgid "Submit"
msgstr "提交" msgstr "提交"
@@ -906,6 +907,7 @@ msgstr "修改历史"
#: templates/registration/login.html:8 #: templates/registration/login.html:8
#: templates/registration/registration_form.html:11 #: templates/registration/registration_form.html:11
#: templates/snippets/user_profile_html.html:27
msgid "Email" msgid "Email"
msgstr "邮箱" msgstr "邮箱"
@@ -920,8 +922,8 @@ msgid "Forgot password?"
msgstr "忘记密码" msgstr "忘记密码"
#: templates/registration/login.html:28 #: templates/registration/login.html:28
#: templates/registration/registration_form.html:28 #, fuzzy
msgid "Email cannot be blank" msgid "Email cant be blank"
msgstr "邮箱不能为空" msgstr "邮箱不能为空"
#: templates/registration/login.html:32 #: templates/registration/login.html:32
@@ -1038,6 +1040,10 @@ msgstr "欢迎回来,您已登录。"
msgid "Confirm Password" msgid "Confirm Password"
msgstr "确认密码" msgstr "确认密码"
#: templates/registration/registration_form.html:28
msgid "Email cannot be blank"
msgstr "邮箱不能为空"
#: templates/registration/registration_form.html:36 #: templates/registration/registration_form.html:36
msgid "Confirm password cannot be blank" msgid "Confirm password cannot be blank"
msgstr "确认密码不能为空" msgstr "确认密码不能为空"
@@ -1242,68 +1248,15 @@ msgstr "Tip必须是团体内成员或群组输入 all 共享到公共资
msgid "Tip: type all to share to public library." msgid "Tip: type all to share to public library."
msgstr "Tip输入 all 共享到公共资料" msgstr "Tip输入 all 共享到公共资料"
#~ msgid "The two password fields did\\'t match" #: templates/snippets/user_profile_html.html:8
#~ msgstr "两次输入的密码不一致" msgid "Add as contact"
msgstr "加为联系人"
#~ msgid "Confirm to remove shared library?" #: templates/snippets/user_profile_html.html:29
#~ msgstr "确定要取消共享?" msgid "Name(optional)"
msgstr "名字(可选)"
#~ msgid "Group" #: templates/snippets/user_profile_html.html:31
#~ msgstr "群组" msgid "Note(optional)"
msgstr "备注(可选)"
#~ msgid "have new message"
#~ msgstr "有新留言"
#~ msgid "org messages"
#~ msgstr "团体消息"
#~ msgid "snapshot viewing"
#~ msgstr "镜像浏览"
#~ msgid "Folder"
#~ msgstr "目录"
#~ msgid "history viewing"
#~ msgstr "历史浏览"
#~ msgid "Get sharing link"
#~ msgstr "获取分享地址"
#~ msgid "Under processing, please wait..."
#~ msgstr "处理中,请稍侯..."
#~ msgid "Nickname is empty"
#~ msgstr "暂无昵称"
#~ msgid "Histories"
#~ msgstr "更多历史"
#~ msgid "System automatically generate"
#~ msgstr "系统自动生成"
#~ msgid "New Folder"
#~ msgstr "新建目录"
#~ msgid "Folder Name"
#~ msgstr "目录名称"
#~ msgid "My Basic Infos"
#~ msgstr "我的基本信息"
#~ msgid "Storage Used"
#~ msgstr "已用空间"
#~ msgid "I owned"
#~ msgstr "我拥有的"
#~ msgid "Public Repo"
#~ msgstr "公共资料"
#~ msgid "Repos"
#~ msgstr "资料库"
#~ msgid "New Repo"
#~ msgstr "新建资料库"
#~ msgid "Sign in"
#~ msgstr "登录"

View File

@@ -25,7 +25,7 @@
<script type="text/javascript"> <script type="text/javascript">
$('input[type="submit"]').click(function(){ $('input[type="submit"]').click(function(){
if (!$.trim($('input[name="username"]').attr('value'))) { if (!$.trim($('input[name="username"]').attr('value'))) {
$('.error').removeClass('hide').html('{% trans "Email cannot be blank" %}'); $('.error').removeClass('hide').html('{% trans "Email cant be blank" %}');
return false; return false;
} }
if (!$.trim($('input[name="password"]').attr('value'))) { if (!$.trim($('input[name="password"]').attr('value'))) {

View File

@@ -1,10 +1,11 @@
{% load i18n %}
<div id="user-profile" class="user-profile ovhd hide"></div> <div id="user-profile" class="user-profile ovhd hide"></div>
<textarea id="jtemplate" class="hide"> <textarea id="jtemplate" class="hide">
{#if !$T.err_msg} {#if !$T.err_msg}
<div class="pic fleft"> <div class="pic fleft">
<img class="avatar" width="80" height="80" alt="{$T.email}" /> <img class="avatar" width="80" height="80" alt="{$T.email}" />
{#if $T.new_user} {#if $T.new_user}
<button id="add-as-contact">加为联系人</button> <button id="add-as-contact">{% trans "Add as contact" %}</button>
{#/if} {#/if}
</div> </div>
@@ -23,13 +24,13 @@
{#if $T.new_user} {#if $T.new_user}
<form id="add-as-contact-form" class="hide" action="{{ SITE_ROOT }}contacts/add/" method="post"> <form id="add-as-contact-form" class="hide" action="{{ SITE_ROOT }}contacts/add/" method="post">
<input type="hidden" name="user_email" value="{{ request.user.username }}" id="id_user_email" /> <input type="hidden" name="user_email" value="{{ request.user.username }}" id="id_user_email" />
<label>邮箱:</label><br /> <label>{% trans "Email" %}</label><br />
<input id="id_contact_email" type="text" name="contact_email" maxlength="255" value="{$T.email}" /><br /> <input id="id_contact_email" type="text" name="contact_email" maxlength="255" value="{$T.email}" /><br />
<label>名字(可选)</label><br /> <label>{% trans "Name(optional)" %}</label><br />
<input id="id_contact_name" type="text" name="contact_name" maxlength="255" /><br /> <input id="id_contact_name" type="text" name="contact_name" maxlength="255" /><br />
<label>备注(可选)</label><br /> <label>{% trans "Note(optional)" %}</label><br />
<input id="id_note" type="text" name="note" maxlength="255" /><br /> <input id="id_note" type="text" name="note" maxlength="255" /><br />
<input type="submit" value="提交" class="submit" /> <input type="submit" value="{% trans "Submit" %}" class="submit" />
</form> </form>
{#/if} {#/if}