From 556931d2b17452b40936a60e49aa1feeb3e38b7e Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 1 Oct 2020 22:10:31 +0200 Subject: [PATCH] Defining Strings to be translated --- 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 +- .../lostplaces/templates/registration/login.html | 8 ++++---- .../lostplaces/templates/signup.html | 6 +++--- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/403.html b/django_lostplaces/lostplaces/templates/403.html index 3e56fb0..11a23b1 100644 --- a/django_lostplaces/lostplaces/templates/403.html +++ b/django_lostplaces/lostplaces/templates/403.html @@ -1,6 +1,6 @@ {% extends 'global.html'%} -{% block title %}Forbidden{% endblock %} +{% block title %}{% translate 'Forbidden' %}{% endblock %} {% block additional_head %} {% if request.META.HTTP_REFERER %} @@ -10,6 +10,6 @@ {% block maincontent %} {% if request.META.HTTP_REFERER %} -

You will be redirected in 5 seconds

Go Back

+

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

{% translate '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 bca584f..2846c3c 100644 --- a/django_lostplaces/lostplaces/templates/global.html +++ b/django_lostplaces/lostplaces/templates/global.html @@ -28,15 +28,15 @@ {% if user.is_authenticated %} Hi {{ user.username }}! - logout + {% translate 'Logout' %} {% if user.is_superuser %} - admin + {% translate 'Admin' %} {% endif %} {% else %} You are not logged in. - login | - signup + {% translate 'Login' %} | + {% translate 'Sign Up' %} {% endif %} @@ -46,14 +46,14 @@ diff --git a/django_lostplaces/lostplaces/templates/home.html b/django_lostplaces/lostplaces/templates/home.html index 6f36133..d19a4fb 100644 --- a/django_lostplaces/lostplaces/templates/home.html +++ b/django_lostplaces/lostplaces/templates/home.html @@ -6,7 +6,7 @@ {% endblock additional_head %} -# {% block title %}Start{% endblock %} +# {% block title %}{% translate 'Home' %}{% endblock %} {% block maincontent %} @@ -16,7 +16,7 @@ {% include 'partials/osm_map.html' with config=mapping_config %}
-

Explore the latest locations

+

{% translate 'Explore the latest locations' %}