1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

Merge branch '1.4'

Conflicts:
	locale/zh_CN/LC_MESSAGES/django.po
This commit is contained in:
zhengxie
2013-02-01 11:02:09 +08:00
6 changed files with 30 additions and 22 deletions

View File

@@ -8,7 +8,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: 2013-01-21 10:53+0800\n" "POT-Creation-Date: 2013-01-31 13:07+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"
@@ -50,6 +50,10 @@ msgstr ""
msgid "The two password fields didn't match." msgid "The two password fields didn't match."
msgstr "" msgstr ""
#: management/commands/createsuperuser.py:25
msgid "Enter a valid e-mail address."
msgstr ""
#: templatetags/seahub_tags.py:80 #: templatetags/seahub_tags.py:80
msgid "Added" msgid "Added"
msgstr "添加了" msgstr "添加了"
@@ -90,55 +94,55 @@ msgstr "重命名了目录"
msgid "Moved directory" msgid "Moved directory"
msgstr "移动了目录" msgstr "移动了目录"
#: templatetags/seahub_tags.py:100 #: templatetags/seahub_tags.py:102
msgid "Reverted repo to status at" msgid "Reverted library to status at"
msgstr "资料库内容还原到" msgstr "资料库内容还原到"
#: templatetags/seahub_tags.py:102 #: templatetags/seahub_tags.py:104
msgid "Reverted file to status at" msgid "Reverted file to status at"
msgstr "文件内容还原到" msgstr "文件内容还原到"
#: templatetags/seahub_tags.py:104 #: templatetags/seahub_tags.py:106
msgid "Recovered deleted directory" msgid "Recovered deleted directory"
msgstr "还原已删除的目录" msgstr "还原已删除的目录"
#: templatetags/seahub_tags.py:106 #: templatetags/seahub_tags.py:108
msgid "Auto merge by seafile system" msgid "Auto merge by seafile system"
msgstr "系统自动合并修改" msgstr "系统自动合并修改"
#: templatetags/seahub_tags.py:163 templatetags/seahub_tags.py:197 #: templatetags/seahub_tags.py:164 templatetags/seahub_tags.py:198
msgid "Just now" msgid "Just now"
msgstr "刚才" msgstr "刚才"
#: templatetags/seahub_tags.py:172 #: templatetags/seahub_tags.py:173
#, python-format #, python-format
msgid "%(days)d day ago" msgid "%(days)d day ago"
msgid_plural "%(days)d days ago" msgid_plural "%(days)d days ago"
msgstr[0] "%(days)d 天前" msgstr[0] "%(days)d 天前"
#: templatetags/seahub_tags.py:179 #: templatetags/seahub_tags.py:180
#, python-format #, python-format
msgid "%(hours)d hour ago" msgid "%(hours)d hour ago"
msgid_plural "%(hours)d hours ago" msgid_plural "%(hours)d hours ago"
msgstr[0] "%(hours)d 小时前" msgstr[0] "%(hours)d 小时前"
#: templatetags/seahub_tags.py:186 #: templatetags/seahub_tags.py:187
#, python-format #, python-format
msgid "%(minutes)d minute ago" msgid "%(minutes)d minute ago"
msgid_plural "%(minutes)d minutes ago" msgid_plural "%(minutes)d minutes ago"
msgstr[0] "%(minutes)d 分钟前" msgstr[0] "%(minutes)d 分钟前"
#: templatetags/seahub_tags.py:192 #: templatetags/seahub_tags.py:193
#, python-format #, python-format
msgid "%(seconds)d second ago" msgid "%(seconds)d second ago"
msgid_plural "%(seconds)d seconds ago" msgid_plural "%(seconds)d seconds ago"
msgstr[0] "%(seconds)d 秒前" msgstr[0] "%(seconds)d 秒前"
#: templatetags/seahub_tags.py:272 #: templatetags/seahub_tags.py:273
msgid "Read-Write" msgid "Read-Write"
msgstr "可读写" msgstr "可读写"
#: templatetags/seahub_tags.py:274 #: templatetags/seahub_tags.py:275
msgid "Read-Only" msgid "Read-Only"
msgstr "只读" msgstr "只读"

View File

@@ -91,13 +91,17 @@ COMMIT_MSG_TRANSLATION_MAP = {
@register.filter(name='translate_commit_desc') @register.filter(name='translate_commit_desc')
def translate_commit_desc(value): def translate_commit_desc(value):
"""Translate commit description.""" """Translate commit description."""
if value.startswith('Reverted repo'):
# Change 'repo' to 'library' in revert commit msg, since 'repo' is
# only used inside of seafile system.
value = value.replace('repo', 'library')
# Do nothing if current language is English. # Do nothing if current language is English.
if translation.get_language() == 'en': if translation.get_language() == 'en':
return value return value
if value.startswith('Reverted repo'): if value.startswith('Reverted library'):
return value.replace('Reverted repo to status at', _('Reverted repo to status at')) return value.replace('Reverted library to status at', _('Reverted library to status at'))
elif value.startswith('Reverted file'): elif value.startswith('Reverted file'):
return value.replace('Reverted file to status at', _('Reverted file to status at')) return value.replace('Reverted file to status at', _('Reverted file to status at'))
elif value.startswith('Recovered deleted directory'): elif value.startswith('Recovered deleted directory'):

View File

@@ -43,7 +43,7 @@
<li class="member">{% avatar member.user_name 16 %}<a class="name" href="{{ SITE_ROOT }}profile/{{ member.user_name }}/">{{ member.user_name|email2nickname }}</a></li> <li class="member">{% avatar member.user_name 16 %}<a class="name" href="{{ SITE_ROOT }}profile/{{ member.user_name }}/">{{ member.user_name|email2nickname }}</a></li>
{% else %} {% else %}
{% if forloop.last %} {% if forloop.last %}
<li class="member">...</li> <li>...</li>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}

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: 2013-01-30 21:15+0800\n" "POT-Creation-Date: 2013-01-31 11:41+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"
@@ -2076,7 +2076,7 @@ msgid "Encrypt"
msgstr "加密" msgstr "加密"
#: templates/snippets/repo_create_form.html:17 #: templates/snippets/repo_create_form.html:17
msgid "(at lease 3 characters)" msgid "(at least 3 characters)"
msgstr "(至少3个字符)" msgstr "(至少3个字符)"
#: templates/snippets/repo_create_form.html:19 #: templates/snippets/repo_create_form.html:19
@@ -2130,5 +2130,5 @@ msgid "Note(optional)"
msgstr "备注(可选)" msgstr "备注(可选)"
#: utils/__init__.py:69 #: utils/__init__.py:69
msgid "permissiong error" msgid "permission error"
msgstr "权限错误" msgstr "权限错误"

View File

@@ -14,7 +14,7 @@
{% endif %} {% endif %}
<div class="repo-create-encryption"> <div class="repo-create-encryption">
<input type="checkbox" name="encryption" id="encrypt-switch" /><label>{% trans "Encrypt"%}</label><br /> <input type="checkbox" name="encryption" id="encrypt-switch" /><label>{% trans "Encrypt"%}</label><br />
<label>{% trans "Password"%}</label><span class="tip">{% trans "(at lease 3 characters)"%}</span><br /> <label>{% trans "Password"%}</label><span class="tip">{% trans "(at least 3 characters)"%}</span><br />
<input type="password" name="passwd" disabled="disabled" class="passwd input-disabled" /><br /> <input type="password" name="passwd" disabled="disabled" class="passwd input-disabled" /><br />
<label>{% trans "Password again"%}</label><br /> <label>{% trans "Password again"%}</label><br />
<input type="password" name="passwd_again" disabled="disabled" class="passwd input-disabled" /> <input type="password" name="passwd_again" disabled="disabled" class="passwd input-disabled" />

View File

@@ -66,7 +66,7 @@ def render_permission_error(request, msg=None, extra_ctx=None):
""" """
ctx = {} ctx = {}
ctx['error_msg'] = msg or _('permissiong error') ctx['error_msg'] = msg or _('permission error')
if extra_ctx: if extra_ctx:
for k in extra_ctx: for k in extra_ctx: