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

Modified plural

This commit is contained in:
zhengxie
2012-10-31 10:02:00 +08:00
parent 1e11e5713e
commit 989e32a32c
7 changed files with 82 additions and 29 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: 2012-10-30 21:46+0800\n" "POT-Creation-Date: 2012-10-30 21:57+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"
@@ -299,7 +299,7 @@ msgid "Creator: "
msgstr "创建者:" msgstr "创建者:"
#: templates/group/groups_right_panel.html:18 #: templates/group/groups_right_panel.html:18
msgid "Create Time: " msgid "Create At: "
msgstr "创建时间:" msgstr "创建时间:"
#: templates/group/groups_right_panel.html:24 #: templates/group/groups_right_panel.html:24

View File

@@ -15,7 +15,7 @@
<div class="txt fright"> <div class="txt fright">
<h4><a href="{{ SITE_ROOT }}group/{{ group.props.id }}/">{{ group.props.group_name }}</a></h4> <h4><a href="{{ SITE_ROOT }}group/{{ group.props.id }}/">{{ group.props.group_name }}</a></h4>
<p><span class="item-name">{% trans "Creator: " %}</span>{{ group.props.creator_name }}</p> <p><span class="item-name">{% trans "Creator: " %}</span>{{ group.props.creator_name }}</p>
<p><span class="item-name">{% trans "Create Time: "%}</span>{{ group.props.timestamp|tsstr_sec }}</p> <p><span class="item-name">{% trans "Create At: "%}</span>{{ group.props.timestamp|tsstr_sec }}</p>
</div> </div>
</li> </li>
{% endfor %} {% endfor %}

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-30 20:27+0800\n" "POT-Creation-Date: 2012-10-31 00:16+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"
@@ -265,7 +265,8 @@ msgstr " 版本历史"
msgid "" msgid ""
"Tip:a new version will be generated after each modification, and you can " "Tip:a new version will be generated after each modification, and you can "
"restore the file to a previous version." "restore the file to a previous version."
msgstr "Tip每次修改后都会生成一个新的版本, 您可以将当前文件恢复到之前的某个版本。" msgstr ""
"Tip每次修改后都会生成一个新的版本, 您可以将当前文件恢复到之前的某个版本。"
#: templates/file_revisions.html:10 templates/text_diff.html:8 #: templates/file_revisions.html:10 templates/text_diff.html:8
msgid "Current Path:" msgid "Current Path:"
@@ -328,23 +329,49 @@ msgstr "编辑"
msgid "Reminding..." msgid "Reminding..."
msgstr "提醒..." msgstr "提醒..."
#: templates/myhome.html:26 #: templates/myhome.html:27
msgid "Group" msgid ""
msgstr "群组" "\n"
" has new message\n"
" "
msgid_plural ""
"\n"
" have new message\n"
" "
msgstr[0] ""
#: templates/myhome.html:30 #: templates/myhome.html:36
msgid "have new message" #, fuzzy, python-format
msgstr "有新留言" msgid ""
"\n"
" one group message has new reply\n"
" "
msgid_plural ""
"\n"
" %(counter)s group messages have new reply\n"
" "
msgstr[0] "条群组留言有新回复"
#: templates/myhome.html:34 #: templates/myhome.html:45
msgid "group message has new reply" #, python-format
msgstr "条群组留言有新回复" msgid ""
"\n"
" one org message\n"
" "
msgid_plural ""
"\n"
" %(counter)s org messages\n"
" "
msgstr[0] ""
"\n"
" 一条团体消息\n"
" "
msgstr[1] ""
"\n"
" %(counter)s 条团体消息\n"
" "
#: templates/myhome.html:37 #: templates/myhome.html:56
msgid "org messages"
msgstr "团体消息"
#: templates/myhome.html:44
msgid "Space used" msgid "Space used"
msgstr "已用空间" msgstr "已用空间"
@@ -749,8 +776,11 @@ msgid "more history"
msgstr "更多历史" msgstr "更多历史"
#: templates/repo_view_file.html:98 #: templates/repo_view_file.html:98
msgid "contributors" #, python-format
msgstr "个贡献者" msgid "one contributor"
msgid_plural " %(counter)s contributors "
msgstr[0] "一个贡献者"
msgstr[1] " %(counter)s 个贡献者 "
#: templates/repo_view_file.html:113 #: templates/repo_view_file.html:113
msgid "Open local file" msgid "Open local file"
@@ -910,6 +940,7 @@ msgid "We've send a password reset email to your email."
msgstr "我们已经把密码重置说明发往您提交的邮箱里,请查收。" msgstr "我们已经把密码重置说明发往您提交的邮箱里,请查收。"
#: templates/registration/password_reset_email.html:2 #: templates/registration/password_reset_email.html:2
#, python-format
msgid "" msgid ""
"You're receiving this e-mail because you requested a password reset for your " "You're receiving this e-mail because you requested a password reset for your "
"user account at %(site_name)s. " "user account at %(site_name)s. "
@@ -928,6 +959,7 @@ msgid "Thanks for using our site!"
msgstr "感谢使用!" msgstr "感谢使用!"
#: templates/registration/password_reset_email.html:12 #: templates/registration/password_reset_email.html:12
#, python-format
msgid "The %(site_name)s team" msgid "The %(site_name)s team"
msgstr "%(site_name)s 团队" msgstr "%(site_name)s 团队"
@@ -1139,6 +1171,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 "Group"
#~ msgstr "群组"
#~ msgid "have new message"
#~ msgstr "有新留言"
#~ msgid "org messages"
#~ msgstr "团体消息"
#~ msgid "snapshot viewing" #~ msgid "snapshot viewing"
#~ msgstr "镜像浏览" #~ msgstr "镜像浏览"

View File

@@ -23,18 +23,30 @@
<ul class="info-item-bottom"> <ul class="info-item-bottom">
{% if grpmsg_list %} {% if grpmsg_list %}
<li> <li>
{% trans "Group" %} {% for grp in grpmsg_list %}<a href="{% url 'group_info' grp.id %}" class="no-bold">{{ grp.group_name }} </a>{% endfor %}
{% for grp in grpmsg_list %} {% blocktrans count counter=grpmsg_list|length %}
<a href="{% url 'group_info' grp.id %}" class="no-bold">{{ grp.group_name }}</a> has new message
{% endfor %} {% plural %}
{% trans "have new message" %} have new message
{% endblocktrans %}
</li> </li>
{% endif %} {% endif %}
{% if grpmsg_reply_list %} {% if grpmsg_reply_list %}
<li><a href="{{ SITE_ROOT }}group/reply/new/" class="no-bold">{{ grpmsg_reply_list|length }}{% trans "group message has new reply" %}</a></li> <li><a href="{{ SITE_ROOT }}group/reply/new/" class="no-bold">{% blocktrans count counter=grpmsg_reply_list|length %}
one group message has new reply
{% plural %}
{{ counter }} group messages have new reply
{% endblocktrans %}</a></li>
{% endif %} {% endif %}
{% if orgmsg_list %} {% if orgmsg_list %}
<li><a href="{% url 'org_msg' %}" class="no-bold">{{ orgmsg_list|length }}{% trans "org messages" %}</a></li> <li><a href="{% url 'org_msg' %}" class="no-bold">
{% blocktrans count counter=orgmsg_list|length %}
one org message
{% plural %}
{{ counter }} org messages
{% endblocktrans %}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>

View File

@@ -95,7 +95,7 @@
<a href="{% url 'file_revisions' repo.id %}?p={{ path }}" class="more fright">{% trans "more history"%}</a> <a href="{% url 'file_revisions' repo.id %}?p={{ path }}" class="more fright">{% trans "more history"%}</a>
</div> </div>
<p class="contributors"> <p class="contributors">
<span>{{ contributors|length }} {% trans "contributors"%}</span> <span>{% blocktrans count counter=contributors|length %}one contributor{% plural %} {{ counter }} contributors {% endblocktrans %}</span>
{% for user in contributors %} {% for user in contributors %}
<a href="{% url 'user_profile' user %}" class="name" title="{{ user|email2nickname}}">{% avatar user 20 %}</a> <a href="{% url 'user_profile' user %}" class="name" title="{{ user|email2nickname}}">{% avatar user 20 %}</a>
{% endfor %} {% endfor %}