From 3fa6170f0cc8fee93789ac6a9b385277bd28e1a4 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 10 Oct 2020 23:46:26 +0200 Subject: [PATCH] Use shorter trans tag instead of translate. --- django_lostplaces/lostplaces/templates/403.html | 4 ++-- .../lostplaces/templates/global.html | 16 ++++++++-------- django_lostplaces/lostplaces/templates/home.html | 4 ++-- .../lostplaces/templates/home_unauth.html | 2 +- .../templates/partials/nav/footer.html | 8 ++++---- .../templates/partials/nav/pagination.html | 16 ++++++++-------- .../lostplaces/templates/partials/tagging.html | 4 ++-- .../lostplaces/templates/partials/welcome.html | 12 ++++++------ .../photo_album/photo_album_create.html | 8 ++++---- .../lostplaces/templates/place/place_create.html | 4 ++-- .../lostplaces/templates/place/place_delete.html | 8 ++++---- .../lostplaces/templates/place/place_detail.html | 12 ++++++------ .../lostplaces/templates/place/place_list.html | 4 ++-- .../lostplaces/templates/place/place_update.html | 4 ++-- .../place_image/place_image_create.html | 2 +- .../lostplaces/templates/registration/login.html | 8 ++++---- .../lostplaces/templates/signup.html | 6 +++--- 17 files changed, 61 insertions(+), 61 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/403.html b/django_lostplaces/lostplaces/templates/403.html index 566a9ab..ef4fbb8 100644 --- a/django_lostplaces/lostplaces/templates/403.html +++ b/django_lostplaces/lostplaces/templates/403.html @@ -1,7 +1,7 @@ {% extends 'global.html'%} {% load i18n %} -{% block title %}{% translate 'Forbidden' %}{% endblock %} +{% block title %}{% trans 'Forbidden' %}{% endblock %} {% block additional_head %} {% if request.META.HTTP_REFERER %} @@ -11,6 +11,6 @@ {% block maincontent %} {% if request.META.HTTP_REFERER %} -

{% translate 'You will be redirected in 5 seconds' %}

{% translate 'Go Back' %}

+

{% trans 'You will be redirected in 5 seconds' %}

{% trans 'Go Back' %}

{% endif %} {% endblock maincontent %} \ No newline at end of file diff --git a/django_lostplaces/lostplaces/templates/global.html b/django_lostplaces/lostplaces/templates/global.html index 3cfa30c..32d751f 100644 --- a/django_lostplaces/lostplaces/templates/global.html +++ b/django_lostplaces/lostplaces/templates/global.html @@ -29,15 +29,15 @@ {% if user.is_authenticated %} Hi {{ user.username }}! - {% translate 'Logout' %} + {% trans 'Logout' %} {% if user.is_superuser %} - {% translate 'Admin' %} + {% trans 'Admin' %} {% endif %} {% else %} You are not logged in. - {% translate 'Login' %} | - {% translate 'Sign Up' %} + {% trans 'Login' %} | + {% trans 'Sign Up' %} {% endif %} @@ -47,14 +47,14 @@ diff --git a/django_lostplaces/lostplaces/templates/home.html b/django_lostplaces/lostplaces/templates/home.html index 36c77aa..df98f0e 100644 --- a/django_lostplaces/lostplaces/templates/home.html +++ b/django_lostplaces/lostplaces/templates/home.html @@ -7,7 +7,7 @@ {% endblock additional_head %} -# {% block title %}{% translate 'Home' %}{% endblock %} +# {% block title %}{% trans 'Home' %}{% endblock %} {% block maincontent %} @@ -17,7 +17,7 @@ {% include 'partials/osm_map.html' with config=mapping_config %}
-

{% translate 'Explore the latest places' %}

+

{% trans 'Explore the latest places' %}