diff --git a/locale/zh_CN/LC_MESSAGES/django.po b/locale/zh_CN/LC_MESSAGES/django.po index 1380147d30..2402a2b381 100644 --- a/locale/zh_CN/LC_MESSAGES/django.po +++ b/locale/zh_CN/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-11-09 18:02+0800\n" +"POT-Creation-Date: 2012-11-09 19:57+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -727,8 +727,8 @@ msgid "Tips" msgstr "小提示" #: templates/public_home.html:11 -msgid "Libraries marked as read-only can only be browsed online. " -msgstr "标记为只读的资料库只能在线浏览。" +msgid "A library marked as read-only can be downloaded." +msgstr "标记为只读的资料库可以被下载。" #: templates/public_home.html:12 msgid "" @@ -1717,10 +1717,6 @@ msgstr "" msgid "Input cannot be empty" msgstr "输入不能为空" -#: templates/snippets/myhome_extra_script.html:34 -msgid "Really want to leave share?" -msgstr "确定要退出共享?" - #: templates/snippets/repo_create_form.html:9 msgid "Share Permission" msgstr "共享权限" @@ -1766,6 +1762,9 @@ msgstr "名字(可选)" msgid "Note(optional)" msgstr "备注(可选)" +#~ msgid "Really want to leave share?" +#~ msgstr "确定要退出共享?" + #~ msgid "Email is not longer than 512 characters" #~ msgstr "邮箱不能超过512个字符" diff --git a/organizations/locale/zh_CN/LC_MESSAGES/django.po b/organizations/locale/zh_CN/LC_MESSAGES/django.po index 3d9f4d1334..b378139a70 100644 --- a/organizations/locale/zh_CN/LC_MESSAGES/django.po +++ b/organizations/locale/zh_CN/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-11-09 18:02+0800\n" +"POT-Creation-Date: 2012-11-09 19:57+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -271,8 +271,8 @@ msgid "" msgstr "你可以到“群组”页面点击“新建群组”按钮创建一个群组。" #: templates/organizations/org_public.html:15 -msgid "Libraries marked as read-only can only be browsed online. " -msgstr "标记为只读的资料库只能在线浏览。" +msgid "A library marked as read-only can be downloaded." +msgstr "标记为只读的资料库可以被下载。" #: templates/organizations/org_public.html:16 msgid "" diff --git a/organizations/templates/organizations/org_public.html b/organizations/templates/organizations/org_public.html index 565a8bf2d6..71ca8e2b82 100644 --- a/organizations/templates/organizations/org_public.html +++ b/organizations/templates/organizations/org_public.html @@ -12,7 +12,7 @@

{% trans "Tips"%}

-

{% trans "Libraries marked as read-only can only be browsed online. "%}

+

{% trans "A library marked as read-only can be downloaded." %}

{% trans "Afterwards, updates on server will be downloaded automatically, but updates on local files will not be uploaded."%}

diff --git a/templates/public_home.html b/templates/public_home.html index bd6ac83d03..57cd87016a 100644 --- a/templates/public_home.html +++ b/templates/public_home.html @@ -8,7 +8,7 @@

{% trans "Tips"%}

-

{% trans "Libraries marked as read-only can only be browsed online. "%}

+

{% trans "A library marked as read-only can be downloaded." %}

{% trans "Afterwards, updates on server will be downloaded automatically, but updates on local files will not be uploaded."%}

diff --git a/templates/snippets/myhome_extra_script.html b/templates/snippets/myhome_extra_script.html index 26ff8681a4..c382280875 100644 --- a/templates/snippets/myhome_extra_script.html +++ b/templates/snippets/myhome_extra_script.html @@ -30,12 +30,14 @@ $(function() { }); addConfirmTo($('.repo-delete-btn'), '{% trans "Really want to delete?" %}'); - - addConfirmTo($('.unshare-btn'), '{% trans "Really want to leave share?" %}'); + + $('.unshare-btn').click(function() { + location.href = $(this).attr('data'); + }); $(".download-btn").click(function() { - window.open('{{ SITE_ROOT }}seafile_access_check/?repo_id=' + $(this).attr('data')); - }); + window.open('{{ SITE_ROOT }}seafile_access_check/?repo_id=' + $(this).attr('data')); + }); //show op images when mouse hover on $("table tr:gt(0)").hover(