From 1659b80eb45db496e4cbbad3b91b78c63c191b2d Mon Sep 17 00:00:00 2001 From: zhengxie Date: Mon, 25 Feb 2013 17:58:53 +0800 Subject: [PATCH] Fixed quota link in different languages. --- settings.py | 2 +- templates/myhome.html | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/settings.py b/settings.py index be29187b2c..780292cac1 100644 --- a/settings.py +++ b/settings.py @@ -100,7 +100,7 @@ LANGUAGES = ( ('zh-cn', gettext_noop(u'简体中文')), ('ru', gettext_noop(u'Русский')), ('de', gettext_noop(u'Deutsch')), - ('es', gettext_noop('español')), + ('es', gettext_noop('Español')), ) LOCALE_PATHS = ( os.path.join(os.path.dirname(__file__), 'locale'), diff --git a/templates/myhome.html b/templates/myhome.html index bbdc8c892f..d0fe7bb78b 100644 --- a/templates/myhome.html +++ b/templates/myhome.html @@ -54,18 +54,23 @@

{% trans "Space used" %}

- {% if CALC_SHARE_USAGE %} + {% if CALC_SHARE_USAGE %}

{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}

{% if quota > 0 %} - + {% if LANGUAGE_CODE == 'zh-cn' %} + + {% else %} + + {% endif %} + {% endif %}

{% trans "Self" %} {{ my_usage|filesizeformat }}, {% trans "Sharing" %} {{ share_usage|filesizeformat }}

- {% else %} + {% else %}

{{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}

{% if quota > 0 %} -
- {% endif %} +
{% endif %} + {% endif %}