diff --git a/group/locale/zh_CN/LC_MESSAGES/django.mo b/group/locale/zh_CN/LC_MESSAGES/django.mo index ae166215ee..5801ef3616 100644 Binary files a/group/locale/zh_CN/LC_MESSAGES/django.mo and b/group/locale/zh_CN/LC_MESSAGES/django.mo differ diff --git a/group/locale/zh_CN/LC_MESSAGES/django.po b/group/locale/zh_CN/LC_MESSAGES/django.po index 6215af6213..07e07d2d44 100644 --- a/group/locale/zh_CN/LC_MESSAGES/django.po +++ b/group/locale/zh_CN/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-27 21:11+0800\n" +"POT-Creation-Date: 2012-10-29 10:41+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -190,6 +190,8 @@ msgstr "信息栏" #: templates/group/group_info.html:124 #: templates/group/groups_right_panel.html:30 +#: templates/group/grpmember_add_form.html:12 +#: templates/group/grpmember_add_form.html:19 msgid "Submit" msgstr "提交" @@ -304,5 +306,26 @@ msgstr "您还没有参加任何群组,可以点击“添加群组”按钮创 msgid "Group Name" msgstr "群组名称" +#: templates/group/grpmember_add_form.html:3 +msgid "Add members to " +msgstr "添加成员到 " + +#: templates/group/grpmember_add_form.html:4 +#: templates/group/grpmember_add_form.html:16 +msgid "Type Emails" +msgstr "输入邮箱" + +#: templates/group/grpmember_add_form.html:7 +msgid "Tip: System will send an email to him if the email is not registered." +msgstr "Tip:可以是未注册邮箱,系统会向他发送邀请邮件。" + +#: templates/group/grpmember_add_form.html:9 +msgid "Tip: The email should be already registered." +msgstr "Tip:必须是已注册的邮箱。" + +#: templates/group/grpmember_add_form.html:15 +msgid "Add staffs to " +msgstr "添加管理员到 " + #~ msgid "Update Time" #~ msgstr "更新时间" diff --git a/group/templates/group/grpmember_add_form.html b/group/templates/group/grpmember_add_form.html index 2794908b5a..bf36f52009 100644 --- a/group/templates/group/grpmember_add_form.html +++ b/group/templates/group/grpmember_add_form.html @@ -1,19 +1,20 @@ +{% load i18n %}
-
-
+
+
{% if cloud_mode and not org %} -

Tip:可以是未注册邮箱,系统会向他发送邀请邮件。

+

{% trans "Tip: System will send an email to him if the email is not registered."%}

{% else %} -

Tip:必须是已注册的邮箱。

+

{% trans "Tip: The email should be already registered."%}

{% endif %}

- +
-
-
+
+

- +
diff --git a/i18n.sh.template b/i18n.sh.template index a8b16f0574..57971b5817 100755 --- a/i18n.sh.template +++ b/i18n.sh.template @@ -3,7 +3,7 @@ # Ignore all apps # .py and .html i18n -django-admin.py makemessages -l zh_CN -e py,html -i "thirdpart*" -i "api*" -i "avatar*" -i "base*" -i "contacts*" -i "group*" -i "notifications*" -i "organizations*" -i "profile*" -i "share*" +django-admin.py makemessages -l zh_CN -e py,html -i "thirdpart*" -i "api*" -i "avatar*" -i "base*" -i "contacts*" -i "group*" -i "notifications*" -i "organizations*" -i "profile*" -i "share*" -i "media*" # js i18n django-admin.py makemessages -d djangojs -l zh_CN -i "thirdpart*" -i "api*" -i "avatar*" -i "base*" -i "contacts*" -i "group*" -i "notifications*" -i "organizations*" -i "profile*" -i "share*" -i "media*" diff --git a/locale/zh_CN/LC_MESSAGES/django.po b/locale/zh_CN/LC_MESSAGES/django.po index e85700e623..20f18eae26 100644 --- a/locale/zh_CN/LC_MESSAGES/django.po +++ b/locale/zh_CN/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-27 21:10+0800\n" +"POT-Creation-Date: 2012-10-29 10:38+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/share/i18n.sh.template b/share/i18n.sh.template new file mode 100755 index 0000000000..9dcbe0d14a --- /dev/null +++ b/share/i18n.sh.template @@ -0,0 +1,7 @@ +#!/bin/sh + +django-admin.py makemessages -l zh_CN -e py,html + +django-admin.py makemessages -d djangojs -l zh_CN + +django-admin.py compilemessages diff --git a/share/locale/zh_CN/LC_MESSAGES/django.mo b/share/locale/zh_CN/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..21ac221cf9 Binary files /dev/null and b/share/locale/zh_CN/LC_MESSAGES/django.mo differ diff --git a/share/locale/zh_CN/LC_MESSAGES/django.po b/share/locale/zh_CN/LC_MESSAGES/django.po new file mode 100644 index 0000000000..8a2019961b --- /dev/null +++ b/share/locale/zh_CN/LC_MESSAGES/django.po @@ -0,0 +1,104 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-29 11:17+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#: templates/repo/share_admin.html:14 +msgid "Shared Libraries" +msgstr "我共享的资料库" + +#: templates/repo/share_admin.html:19 +msgid "Name" +msgstr "名字" + +#: templates/repo/share_admin.html:20 +msgid "Share To" +msgstr "共享到" + +#: templates/repo/share_admin.html:21 +msgid "Permission" +msgstr "权限" + +#: templates/repo/share_admin.html:22 +msgid "Description" +msgstr "描述" + +#: templates/repo/share_admin.html:23 templates/repo/share_admin.html.py:74 +msgid "Operations" +msgstr "操作" + +#: templates/repo/share_admin.html:27 templates/repo/share_admin.html.py:40 +msgid "Read-Write" +msgstr "可读写" + +#: templates/repo/share_admin.html:33 +msgid "Edit" +msgstr "编辑" + +#: templates/repo/share_admin.html:38 +msgid "Read-Only" +msgstr "只读" + +#: templates/repo/share_admin.html:47 templates/repo/share_admin.html.py:50 +#: templates/repo/share_admin.html:54 templates/repo/share_admin.html.py:56 +msgid "Remove Share" +msgstr "取消共享" + +#: templates/repo/share_admin.html:64 +msgid "" +"Here will show libraries you share to your friends. You can click \"Share\" " +"icon in \"My Home\" to share library to your friends." +msgstr "" +"这里将显示您共享给您朋友的资料库。您可以点击“我的页面”任意资料库旁的“共享”图" +"标将您的资料库共享给您的朋友。" + +#: templates/repo/share_admin.html:67 +msgid "File Links" +msgstr "文件外链" + +#: templates/repo/share_admin.html:71 +msgid "File" +msgstr "文件" + +#: templates/repo/share_admin.html:72 +msgid "Library" +msgstr "资料库" + +#: templates/repo/share_admin.html:73 +msgid "View Count" +msgstr "查看次数" + +#: templates/repo/share_admin.html:82 +msgid "View Link" +msgstr "查看链接" + +#: templates/repo/share_admin.html:83 +msgid "Remove" +msgstr "删除" + +#: templates/repo/share_admin.html:89 +msgid "" +"Here will show your file links. You can click \"Get sharing link\" in file " +"viewing page to generate file link. " +msgstr "" +"这里将显示您分享的文件外链。您可以在文件浏览页面点击“获取分享地址”按钮生成文" +"件外链。" + +#: templates/repo/share_admin.html:91 +msgid "File Link: " +msgstr "文件外链:" diff --git a/share/templates/repo/share_admin.html b/share/templates/repo/share_admin.html index 8a3814c1d2..685b1b7616 100644 --- a/share/templates/repo/share_admin.html +++ b/share/templates/repo/share_admin.html @@ -1,5 +1,5 @@ {% extends base_template %} -{% load seahub_tags %} +{% load seahub_tags i18n %} {% load url from future %} {% block nav_shareadmin_class %}class="cur"{% endblock %} @@ -11,49 +11,49 @@ {% endif %} {% block right_panel %} -

我共享的资料库

+

{% trans "Shared Libraries"%}

{% if shared_repos %} - - - - - + + + + + {% for repo in shared_repos %} - + @@ -61,17 +61,17 @@ {% endfor %}
名字共享给权限描述操作{% trans "Name"%}{% trans "Share To"%}{% trans "Permission"%}{% trans "Description"%}{% trans "Operations"%}
目录icon目录icon {{ repo.props.repo_name }} {{ repo.props.user }} {{ repo.props.repo_desc }} {% if repo.props.share_type == 'group' %} - + {% endif %} {% if repo.props.share_type == 'personal' %} - + {% endif %} {% if repo.props.share_type == 'public' %} {% if not org %} - + {% else %} - + {% endif %} {% endif %}
{% else %} -

这里将显示您共享给您朋友的资料库。您可以点击“我的页面”任意资料库旁的“共享”图标将您的资料库共享给您的朋友。

+

{% blocktrans %}Here will show libraries you share to your friends. You can click "Share" icon in "My Home" to share library to your friends.{% endblocktrans %}

{% endif %} -

我管理的文件外链

+

{% trans "File Links"%}

{% if fileshares %} - - - - + + + + {% for fs in fileshares %} @@ -79,16 +79,16 @@ {% endfor %} {% else %} -

这里将显示您分享的文件外链。您可以在文件浏览页面点击“获取分享地址”按钮生成文件外链。

+

{% blocktrans %}Here will show your file links. You can click "Get sharing link" in file viewing page to generate file link. {% endblocktrans %}

{% endif %} - + {% endblock %} {% block extra_script %} diff --git a/templates/snippets/repo_create_form.html b/templates/snippets/repo_create_form.html index 703f838f6e..8a6b542595 100644 --- a/templates/snippets/repo_create_form.html +++ b/templates/snippets/repo_create_form.html @@ -20,5 +20,5 @@

- +