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,7 +3,7 @@
{% load static %}
{% load i18n %}
{% block page_title %}{% trans "SRP Fleet Create" %}{% endblock page_title %}
{% block page_title %}{% translate "SRP Fleet Create" %}{% endblock page_title %}
{% block extra_css %}
{% include 'bundles/jquery-datetimepicker-css.html' %}
{% endblock extra_css %}
@@ -11,7 +11,7 @@
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">{% trans "Create SRP Fleet" %}</h1>
<h1 class="page-header text-center">{% translate "Create SRP Fleet" %}</h1>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
@@ -21,14 +21,14 @@
{% csrf_token %}
{{ form|bootstrap }}
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create SRP Fleet" %}</button>
<button class="btn btn-lg btn-primary btn-block" type="submit">{% translate "Create SRP Fleet" %}</button>
</form>
{% else %}
<div class="alert alert-info" role="alert">{% blocktrans %}Give this link to the line members{% endblocktrans %}.</div>
<div class="alert alert-info" role="alert">
{{ request.scheme }}://{{ request.get_host }}{% url 'srp:request' completed_srp_code %}</div>
<div class="text-center">
<a href="{% url 'srp:management' %}" class="btn btn-primary btn-lg">{% trans "Continue" %}</a>
<a href="{% url 'srp:management' %}" class="btn btn-primary btn-lg">{% translate "Continue" %}</a>
</div>
{% endif %}
</div>

View File

@@ -49,16 +49,16 @@
{% block content %}
<div class="col-lg-12">
<div class="row">
<h1 class="page-header text-center">{% trans "SRP Fleet Data" %}
<h1 class="page-header text-center">{% translate "SRP Fleet Data" %}
<div class="text-right">
{% if perms.auth.srp_management %}
{% if fleet_status == "Completed" %}
<a href="{% url 'srp:mark_uncompleted' fleet_id %}" class="btn btn-warning">
{% trans "Mark Incomplete" %}
{% translate "Mark Incomplete" %}
</a>
{% else %}
<a href="{% url 'srp:mark_completed' fleet_id %}" class="btn btn-success">
{% trans "Mark Completed" %}
{% translate "Mark Completed" %}
</a>
{% endif %}
{% endif %}
@@ -70,8 +70,8 @@
{% csrf_token %}
<div class="alert alert-info" role="alert">
<div class="text-right">
<b><span style="padding-right:2.5em">{% trans "Total Losses:" %} {{ srpfleetrequests.count }}</span></b>
<b><span style="padding-right:2.5em">{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</span></b>
<b><span style="padding-right:2.5em">{% translate "Total Losses:" %} {{ srpfleetrequests.count }}</span></b>
<b><span style="padding-right:2.5em">{% translate "Total ISK Cost:" %} {{ totalcost | intcomma }}</span></b>
{% if perms.auth.srp_management %}
<button type="submit" title="Approve" class="btn btn-success" formaction="{% url 'srp:request_approve' %}">
<span class="glyphicon glyphicon-ok"></span>
@@ -79,7 +79,7 @@
<button type="submit" title="Reject" class="btn btn-warning" formaction="{% url 'srp:request_reject' %}">
<span class="glyphicon glyphicon-remove"></span>
</button>
<button type="submit" title="Remove" onclick="return confirm('{% trans "Are you sure you want to delete SRP requests?" %}')" class="btn btn-danger" formaction="{% url 'srp:request_remove' %}">
<button type="submit" title="Remove" onclick="return confirm('{% translate "Are you sure you want to delete SRP requests?" %}')" class="btn btn-danger" formaction="{% url 'srp:request_remove' %}">
<span class="glyphicon glyphicon-trash"></span>
</button>
{% endif %}
@@ -88,19 +88,19 @@
<div class="table-responsive">
<table class="table srplist">
<thead>
<th class="text-center">{% trans "Pilot Name" %}</th>
<th class="text-center">{% trans "Killboard Link" %}</th>
<th class="text-center">{% trans "Additional Info" %}</th>
<th class="text-center">{% trans "Ship Type" %}</th>
<th class="text-center">{% trans "Killboard Loss Amt" %}</th>
<th class="text-center">{% trans "SRP ISK Cost" %}
<th class="text-center">{% translate "Pilot Name" %}</th>
<th class="text-center">{% translate "Killboard Link" %}</th>
<th class="text-center">{% translate "Additional Info" %}</th>
<th class="text-center">{% translate "Ship Type" %}</th>
<th class="text-center">{% translate "Killboard Loss Amt" %}</th>
<th class="text-center">{% translate "SRP ISK Cost" %}
<i class="glyphicon glyphicon-question-sign" rel="tooltip" title="{% blocktrans trimmed %}Click value to edit
Enter to save & next
ESC to cancel{% endblocktrans %}"id="blah"></i></th>
<th class="text-center">{% trans "Post Time" %}</th>
<th class="text-center">{% trans "Status" %}</th>
<th class="text-center">{% translate "Post Time" %}</th>
<th class="text-center">{% translate "Status" %}</th>
{% if perms.auth.srp_management %}
<th class="text-center">{% trans "Actions" %}</th>
<th class="text-center">{% translate "Actions" %}</th>
{% endif %}
</thead>
@@ -127,15 +127,15 @@ ESC to cancel{% endblocktrans %}"id="blah"></i></th>
<td class="text-center">
{% if srpfleetrequest.srp_status == "Approved" %}
<div class="label label-success">
{% trans "Approved" %}
{% translate "Approved" %}
</div>
{% elif srpfleetrequest.srp_status == "Rejected" %}
<div class="label label-danger">
{% trans "Rejected" %}
{% translate "Rejected" %}
</div>
{% else %}
<div class="label label-warning">
{% trans "Pending" %}
{% translate "Pending" %}
</div>
{% endif %}
</td>
@@ -157,8 +157,8 @@ ESC to cancel{% endblocktrans %}"id="blah"></i></th>
</div>
<div class="alert alert-info" role="alert">
<div class="text-right">
<b><span style="padding-right:2.5em">{% trans "Total Losses:" %} {{ srpfleetrequests.count }}</span></b>
<b><span style="padding-right:2.5em">{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</span></b>
<b><span style="padding-right:2.5em">{% translate "Total Losses:" %} {{ srpfleetrequests.count }}</span></b>
<b><span style="padding-right:2.5em">{% translate "Total ISK Cost:" %} {{ totalcost | intcomma }}</span></b>
{% if perms.auth.srp_management %}
<button type="submit" title="Approve" class="btn btn-success" formaction="{% url 'srp:request_approve' %}">
<span class="glyphicon glyphicon-ok"></span>
@@ -166,7 +166,7 @@ ESC to cancel{% endblocktrans %}"id="blah"></i></th>
<button type="submit" title="Reject" class="btn btn-warning" formaction="{% url 'srp:request_reject' %}">
<span class="glyphicon glyphicon-remove"></span>
</button>
<button type="submit" title="Remove" onclick="return confirm('{% trans "Are you sure you want to delete SRP requests?" %}')" class="btn btn-danger" formaction="{% url 'srp:request_remove' %}">
<button type="submit" title="Remove" onclick="return confirm('{% translate "Are you sure you want to delete SRP requests?" %}')" class="btn btn-danger" formaction="{% url 'srp:request_remove' %}">
<span class="glyphicon glyphicon-trash"></span>
</button>
{% endif %}
@@ -175,7 +175,7 @@ ESC to cancel{% endblocktrans %}"id="blah"></i></th>
</form>
{% else %}
<div class="alert alert-warning text-center">
{% trans "No SRP requests for this fleet." %}
{% translate "No SRP requests for this fleet." %}
</div>
{% endif %}
</div>

View File

@@ -5,45 +5,45 @@
{% load humanize %}
{% block page_title %}{% trans "Srp Management" %}{% endblock page_title %}
{% block page_title %}{% translate "Srp Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %}
{% block content %}
<div class="col-lg-12">
<div class="row">
<h1 class="page-header text-center">{% trans "SRP Management" %}
<h1 class="page-header text-center">{% translate "SRP Management" %}
<div class="text-right">
{% if perms.auth.srp_management %}
<a href="{% url 'srp:all' %}" class="btn btn-primary">
{% trans "View All" %}
{% translate "View All" %}
</a>
{% endif %}
{% if perms.srp.add_srpfleetmain or perms.auth.srp_management %}
<a href="{% url 'srp:add' %}" class="btn btn-success">
{% trans "Add SRP Fleet" %}
{% translate "Add SRP Fleet" %}
</a>
{% endif %}
</div>
</h1>
<div class="alert alert-info" role="alert">
<div class="text-right">
<b>{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
<b>{% translate "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
</div>
</div>
{% if srpfleets %}
<div class="table-responsive">
<table class="table">
<tr>
<th class="text-center">{% trans "Fleet Name" %}</th>
<th class="text-center">{% trans "Fleet Time" %}</th>
<th class="text-center">{% trans "Fleet Doctrine" %}</th>
<th class="text-center">{% trans "Fleet Commander" %}</th>
<th class="text-center">{% trans "Fleet AAR" %}</th>
<th class="text-center">{% trans "Fleet SRP Code" %}</th>
<th class="text-center">{% trans "Fleet ISK Cost" %}</th>
<th class="text-center">{% trans "SRP Status" %}</th>
<th class="text-center">{% trans "Pending Requests" %}</th>
<th width="100px" class="text-center">{% trans "Actions" %}</th>
<th class="text-center">{% translate "Fleet Name" %}</th>
<th class="text-center">{% translate "Fleet Time" %}</th>
<th class="text-center">{% translate "Fleet Doctrine" %}</th>
<th class="text-center">{% translate "Fleet Commander" %}</th>
<th class="text-center">{% translate "Fleet AAR" %}</th>
<th class="text-center">{% translate "Fleet SRP Code" %}</th>
<th class="text-center">{% translate "Fleet ISK Cost" %}</th>
<th class="text-center">{% translate "SRP Status" %}</th>
<th class="text-center">{% translate "Pending Requests" %}</th>
<th width="100px" class="text-center">{% translate "Actions" %}</th>
</tr>
{% for srpfleet in srpfleets %}
<tr>
@@ -61,7 +61,7 @@
</td>
<td class="text-center">
{% if srpfleet.fleet_srp_aar_link %}
<a href="{{ srpfleet.fleet_srp_aar_link }}" target="_blank" class="label label-primary">{% trans 'Link' %}</a>
<a href="{{ srpfleet.fleet_srp_aar_link }}" target="_blank" class="label label-primary">{% translate 'Link' %}</a>
{% endif %}
</td>
<td class="text-center">
@@ -69,7 +69,7 @@
<a class="label label-warning" href="{% url 'srp:request' srpfleet.fleet_srp_code %}">{{ srpfleet.fleet_srp_code }}</a>
{% else %}
<div class="label label-danger">
{% trans "Disabled" %}
{% translate "Disabled" %}
</div>
{% endif %}
</td>
@@ -78,11 +78,11 @@
<td class="text-center">
{% if srpfleet.fleet_srp_status == "" %}
<div class="label label-warning">
{% trans "Pending" %}
{% translate "Pending" %}
</div>
{% else %}
<div class="label label-success">
{% trans "Completed" %}
{% translate "Completed" %}
</div>
{% endif %}
</td>
@@ -100,7 +100,7 @@
<span class="glyphicon glyphicon-pencil"></span>
</a>
<a href="{% url 'srp:remove' srpfleet.id %}" onclick="return confirm('{% trans "Are you sure you want to delete this SRP code and its contents?" %}')" class="btn btn-danger" title="Remove">
<a href="{% url 'srp:remove' srpfleet.id %}" onclick="return confirm('{% translate "Are you sure you want to delete this SRP code and its contents?" %}')" class="btn btn-danger" title="Remove">
<span class="glyphicon glyphicon-trash"></span>
</a>
{% if srpfleet.fleet_srp_code %}
@@ -121,7 +121,7 @@
</div>
{% else %}
<div class="alert alert-warning text-center">
{% trans "No SRP fleets created." %}
{% translate "No SRP fleets created." %}
</div>
{% endif %}
</div>

View File

@@ -3,12 +3,12 @@
{% load static %}
{% load i18n %}
{% block page_title %}{% trans "SRP Request" %}{% endblock page_title %}
{% block page_title %}{% translate "SRP Request" %}{% endblock page_title %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">{% trans "Create SRP Request" %}</h1>
<h1 class="page-header text-center">{% translate "Create SRP Request" %}</h1>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
@@ -17,7 +17,7 @@
{% csrf_token %}
{{ form|bootstrap }}
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create SRP Request" %}
<button class="btn btn-lg btn-primary btn-block" type="submit">{% translate "Create SRP Request" %}
</button>
</form>
</div>

View File

@@ -3,24 +3,24 @@
{% load static %}
{% load i18n %}
{% block page_title %}{% trans "Update AAR Link" %}{% endblock page_title %}
{% block page_title %}{% translate "Update AAR Link" %}{% endblock page_title %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">{% trans "Update AAR Link" %}</h1>
<h1 class="page-header text-center">{% translate "Update AAR Link" %}</h1>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
{% if no_fleet_id %}
<div class="alert alert-danger" role="alert">{% trans "SRP Fleet Does Not Exist" %}</div>
<div class="alert alert-danger" role="alert">{% translate "SRP Fleet Does Not Exist" %}</div>
{% else %}
<form class="form-signin" role="form" action="" method="POST">
{% csrf_token %}
{{ form|bootstrap }}
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update AAR Link" %}
<button class="btn btn-lg btn-primary btn-block" type="submit">{% translate "Update AAR Link" %}
</button>
</form>
{% endif %}