fixed old Django 2 translation template tags

This commit is contained in:
Peter Pfeufer
2021-10-19 12:05:45 +02:00
parent 5fcb092151
commit cdcf65cb52
55 changed files with 459 additions and 459 deletions

View File

@@ -3,15 +3,15 @@
<div class="row vertical-flexbox-row2">
<div class="col-sm-6">
<div class="panel panel-primary" style="height:100%;position:relative;">
<div class="panel-heading text-center"><h3 class="panel-title">{% trans "Alliance Auth Notifications" %}</h3></div>
<div class="panel-heading text-center"><h3 class="panel-title">{% translate "Alliance Auth Notifications" %}</h3></div>
<div class="panel-body">
<ul class="list-group">
{% for notif in notifications %}
<li class="list-group-item">
{% if notif.state == 'opened' %}
<span class="label label-success">{% trans "Open" %}</span>
<span class="label label-success">{% translate "Open" %}</span>
{% else %}
<span class="label label-danger">{% trans "Closed" %}</span>
<span class="label label-danger">{% translate "Closed" %}</span>
{% endif %}
<a href="{{ notif.web_url }}" target="_blank">#{{ notif.iid }} {{ notif.title }}</a>
</li>
@@ -38,34 +38,34 @@
</div>
<div class="col-sm-6">
<div class="panel panel-primary" style="height:50%;">
<div class="panel-heading text-center"><h3 class="panel-title">{% trans "Software Version" %}</h3></div>
<div class="panel-heading text-center"><h3 class="panel-title">{% translate "Software Version" %}</h3></div>
<div class="panel-body flex-center-horizontal">
<ul class="list-group list-group-horizontal" style="margin-bottom: 0;">
<li class="list-group-item">
<h5 class="list-group-item-heading">{% trans "Current" %}</h5>
<h5 class="list-group-item-heading">{% translate "Current" %}</h5>
<p class="list-group-item-text">
{{ current_version }}
</p>
</li>
<li class="list-group-item list-group-item-{% if latest_patch %}success{% elif latest_minor %}warning{% else %}danger{% endif %}">
<h5 class="list-group-item-heading">{% trans "Latest Stable" %}</h5>
<h5 class="list-group-item-heading">{% translate "Latest Stable" %}</h5>
<p class="list-group-item-text">
<a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000">
<i class="fab fa-gitlab hidden-xs" aria-hidden="true"></i>
{{ latest_patch_version }}
</a>
{% if not latest_patch %}<br>{% trans "Update available" %}{% endif %}
{% if not latest_patch %}<br>{% translate "Update available" %}{% endif %}
</p>
</li>
{% if latest_beta %}
<li class="list-group-item list-group-item-info">
<h5 class="list-group-item-heading">{% trans "Latest Pre-Release" %}</h5>
<h5 class="list-group-item-heading">{% translate "Latest Pre-Release" %}</h5>
<p class="list-group-item-text">
<a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000">
<i class="fab fa-gitlab hidden-xs" aria-hidden="true"></i>
{{ latest_beta_version }}
</a>
<br>{% trans "Pre-Release available" %}
<br>{% translate "Pre-Release available" %}
</p>
</li>
{% endif %}
@@ -73,7 +73,7 @@
</div>
</div>
<div class="panel panel-primary" style="height:50%;">
<div class="panel-heading text-center"><h3 class="panel-title">{% trans "Task Queue" %}</h3></div>
<div class="panel-heading text-center"><h3 class="panel-title">{% translate "Task Queue" %}</h3></div>
<div class="panel-body flex-center-horizontal">
<div class="progress" style="height: 21px;">
<div class="progress-bar
@@ -90,7 +90,7 @@
</div>
</div>
{% if task_queue_length < 0 %}
{% trans "Error retrieving task queue length" %}
{% translate "Error retrieving task queue length" %}
{% else %}
{% blocktrans trimmed count tasks=task_queue_length %}
{{ tasks }} task

View File

@@ -3,6 +3,6 @@
<li>
<a href="{% url 'nightmode' %}?next={{ request.path|urlencode }}">
<i class="fas {% if NIGHT_MODE %}fa-toggle-on{% else %}fa-toggle-off{% endif %}" aria-hidden="true"></i>
{% trans "Night Mode" %}
{% translate "Night Mode" %}
</a>
</li>

View File

@@ -7,12 +7,12 @@
<ul class="nav nav-pills nav-stacked gray-icon-color" id="side-menu">
<li>
<a class="{% navactive request 'authentication:dashboard' %}" href="{% url 'authentication:dashboard' %}">
<i class="fas fa-tachometer-alt fa-fw"></i> {% trans "Dashboard" %}
<i class="fas fa-tachometer-alt fa-fw"></i> {% translate "Dashboard" %}
</a>
</li>
<li>
<a class="{% navactive request 'groupmanagement:groups' %}" href="{% url 'groupmanagement:groups' %}">
<i class="fas fa-users fa-fw"></i> {% trans "Groups" %}
<i class="fas fa-users fa-fw"></i> {% translate "Groups" %}
</a>
</li>