From 2c18ff7b1706c99757f633883f9e98d92f6bc68d Mon Sep 17 00:00:00 2001 From: zhengxie Date: Fri, 26 Oct 2012 19:54:45 +0800 Subject: [PATCH] Changed repo to library --- group/templates/group/group_info.html | 2 +- locale/zh_CN/LC_MESSAGES/django.po | 17 ++++++++++--- locale/zh_CN/LC_MESSAGES/djangojs.mo | Bin 450 -> 788 bytes locale/zh_CN/LC_MESSAGES/djangojs.po | 24 +++++++++++++++--- po.js | 12 +++++++++ templates/myhome_base.html | 2 +- templates/registration/login.html | 6 ++--- templates/registration/registration_form.html | 6 ++--- templates/snippets/my_owned_repos.html | 4 +-- 9 files changed, 55 insertions(+), 18 deletions(-) diff --git a/group/templates/group/group_info.html b/group/templates/group/group_info.html index e28547f0ab..81ad71adb9 100644 --- a/group/templates/group/group_info.html +++ b/group/templates/group/group_info.html @@ -192,7 +192,7 @@ {% include 'snippets/user_profile_js.html' %} {% endblock %} diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index d3e995c7b0..adcb0bcb17 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -29,15 +29,15 @@ $('input[type="submit"]').click(function(){ return false; } if (!$.trim($('input[name="password1"]').attr('value'))) { - $('.error').removeClass('hide').html('Password can\'t be blank'); + $('.error').removeClass('hide').html(gettext('Password can\'t be blank')); return false; } if (!$.trim($('input[name="password2"]').attr('value'))) { - $('.error').removeClass('hide').html('Confirm password can\'t be blank'); + $('.error').removeClass('hide').html(gettext('Confirm password can\'t be blank')); return false; } if ($.trim($('input[name="password1"]').attr('value')) != $.trim($('input[name="password2"]').attr('value'))) { - $('.error').removeClass('hide').html('The two password fields did\'t match'); + $('.error').removeClass('hide').html(gettext('The two password fields did\'t match')); return false; } }); diff --git a/templates/snippets/my_owned_repos.html b/templates/snippets/my_owned_repos.html index 417822c637..a12cd9ca52 100644 --- a/templates/snippets/my_owned_repos.html +++ b/templates/snippets/my_owned_repos.html @@ -1,12 +1,12 @@ {% load seahub_tags i18n %} -

{% trans "Repos" %}

+

{% trans "Libraries" %}

- +
{% if owned_repos %}