Use shorter trans tag instead of translate.

This commit is contained in:
2020-10-10 23:46:26 +02:00
parent f73b264a2a
commit 3fa6170f0c
17 changed files with 61 additions and 61 deletions

View File

@@ -2,20 +2,20 @@
{% load static %}
{% load i18n %}
{% block title %}{% translate 'Lost Place Deletion' %}{% endblock %}
{% block title %}{% trans 'Lost Place Deletion' %}{% endblock %}
{% block maincontent %}
<form class="LP-Form" method="POST">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">{% translate 'Delete place' %}</legend>
<legend class="LP-Form__Legend">{% trans 'Delete place' %}</legend>
{% csrf_token %}
<div class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__InfoText">
<p class="LP-Paragraph">{% translate 'Are you sure you want to delete' %} "{{place.name}}"?</p>
<p class="LP-Paragraph">{% trans 'Are you sure you want to delete' %} "{{place.name}}"?</p>
</div>
</div>
{% translate 'Delete' as action %}
{% trans 'Delete' as action %}
<div class="LP-Form__Composition LP-Form__Composition--buttons">
{% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action=action %}
</div>