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

Fixed quota link in different languages.

This commit is contained in:
zhengxie
2013-02-25 17:58:53 +08:00
parent 36a3bd1685
commit 1659b80eb4
2 changed files with 11 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ LANGUAGES = (
('zh-cn', gettext_noop(u'简体中文')), ('zh-cn', gettext_noop(u'简体中文')),
('ru', gettext_noop(u'Русский')), ('ru', gettext_noop(u'Русский')),
('de', gettext_noop(u'Deutsch')), ('de', gettext_noop(u'Deutsch')),
('es', gettext_noop('español')), ('es', gettext_noop('Español')),
) )
LOCALE_PATHS = ( LOCALE_PATHS = (
os.path.join(os.path.dirname(__file__), 'locale'), os.path.join(os.path.dirname(__file__), 'locale'),

View File

@@ -57,7 +57,12 @@
{% if CALC_SHARE_USAGE %} {% if CALC_SHARE_USAGE %}
<p>{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p> <p>{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
{% if quota > 0 %} {% if quota > 0 %}
<a href="http://www.seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}help/quota/" target="_blank" id="quota-bar"><span id="my-usage" title="{% trans "Self" %}"></span><span id="share-usage" title="{% trans "Sharing" %}"></span></a> {% if LANGUAGE_CODE == 'zh-cn' %}
<a href="http://www.seafile.com/help/quota/" target="_blank" id="quota-bar">
{% else %}
<a href="http://www.seafile.com/en/help/quota/" target="_blank" id="quota-bar">
{% endif %}
<span id="my-usage" title="{% trans "Self" %}"></span><span id="share-usage" title="{% trans "Sharing" %}"></span></a>
{% endif %} {% endif %}
<p id="usage-details">{% trans "Self" %} {{ my_usage|filesizeformat }}, {% trans "Sharing" %} {{ share_usage|filesizeformat }}</p> <p id="usage-details">{% trans "Self" %} {{ my_usage|filesizeformat }}, {% trans "Sharing" %} {{ share_usage|filesizeformat }}</p>
{% else %} {% else %}