mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
Fixed quota link in different languages.
This commit is contained in:
@@ -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'),
|
||||
|
@@ -54,18 +54,23 @@
|
||||
<div class="info-item">
|
||||
<h3 class="info-item-top">{% trans "Space used" %}</h3>
|
||||
<div class="info-item-bottom">
|
||||
{% if CALC_SHARE_USAGE %}
|
||||
{% if CALC_SHARE_USAGE %}
|
||||
<p>{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
|
||||
{% 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 %}
|
||||
<p id="usage-details">{% trans "Self" %} {{ my_usage|filesizeformat }}, {% trans "Sharing" %} {{ share_usage|filesizeformat }}</p>
|
||||
{% else %}
|
||||
{% else %}
|
||||
<p>{{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
|
||||
{% if quota > 0 %}
|
||||
<div id="quota-bar"><span id="quota-usage"></span></div>
|
||||
{% endif %}
|
||||
<div id="quota-bar"><span id="quota-usage"></span></div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user