From 24c2ac8347a3c5d4092499590b5f64b647048c95 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 1 Oct 2020 22:56:44 +0200 Subject: [PATCH] Added translation tags. --- .../lostplaces/templates/partials/welcome.html | 12 ++++++------ .../templates/photo_album/photo_album_create.html | 8 ++++---- .../lostplaces/templates/place/place_create.html | 4 ++-- .../lostplaces/templates/place/place_delete.html | 6 +++--- .../lostplaces/templates/place/place_detail.html | 12 ++++++------ .../lostplaces/templates/place/place_list.html | 4 ++-- .../lostplaces/templates/place/place_update.html | 4 ++-- .../templates/place_image/place_image_create.html | 2 +- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/partials/welcome.html b/django_lostplaces/lostplaces/templates/partials/welcome.html index cb45a98..3f75ce5 100644 --- a/django_lostplaces/lostplaces/templates/partials/welcome.html +++ b/django_lostplaces/lostplaces/templates/partials/welcome.html @@ -1,19 +1,19 @@
-

Start

+

{% translate 'Start' %}

-

Welcome to our Urban Exploration community catalogue, +

{% translate 'Welcome to our Urban Exploration community catalogue,' %} {% if user.is_authenticated %} {{ user.username }} {% else %} - explorer + {% translate 'explorer' %} {% endif %} !

- We strictly follow our - UrBex codex - and expect you to do so, too. + {% translate 'We strictly follow our' %} + {% translate 'UrBex codex' %} + {% translate 'and expect you to do so, too.' %}'

diff --git a/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html b/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html index 52cdb7b..4a0207e 100644 --- a/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html +++ b/django_lostplaces/lostplaces/templates/photo_album/photo_album_create.html @@ -1,18 +1,18 @@ {% extends 'global.html'%} -{% block title %}Submit a photo album{% endblock %} +{% block title %}{% translate 'Submit a photo album' %}{% endblock %} {% block additional_menu_items %}
  • Edit place
  • + class="LP-Link__Text">{% translate 'Edit place' %}
  • Delete place
  • + class="LP-Link__Text">{% translate 'Delete place' %} {% endblock additional_menu_items %} {% block maincontent %}
    - Submit a photo album for {{place.name}} + {% translate 'Submit a photo album for' %}% {{place.name}} {% csrf_token %}
    diff --git a/django_lostplaces/lostplaces/templates/place/place_create.html b/django_lostplaces/lostplaces/templates/place/place_create.html index 381bc9d..c1ca326 100644 --- a/django_lostplaces/lostplaces/templates/place/place_create.html +++ b/django_lostplaces/lostplaces/templates/place/place_create.html @@ -1,12 +1,12 @@ {% extends 'global.html'%} {% load static %} -# {% block title %}Place erstellen{% endblock %} +# {% block title %}{% translate 'Create Place' %}{% endblock %} {% block maincontent %}
    - Create Place + {% translate 'Create Place' %} {% csrf_token %}
    diff --git a/django_lostplaces/lostplaces/templates/place/place_delete.html b/django_lostplaces/lostplaces/templates/place/place_delete.html index 2b644a7..882e9cc 100644 --- a/django_lostplaces/lostplaces/templates/place/place_delete.html +++ b/django_lostplaces/lostplaces/templates/place/place_delete.html @@ -1,17 +1,17 @@ {% extends 'global.html'%} {% load static %} -{% block title %}Lost Place Deletion{% endblock %} +{% block title %}{% tranlate 'Lost Place Deletion' %}{% endblock %} {% block maincontent %}
    - Delete place + {% tranlate 'Delete place' %} {% csrf_token %}
    -

    Are you sure you want to delete "{{place.name}}"?

    +

    {% tranlate 'Are you sure you want to delete' %} "{{place.name}}"?

    diff --git a/django_lostplaces/lostplaces/templates/place/place_detail.html b/django_lostplaces/lostplaces/templates/place/place_detail.html index fdf656a..5ca0b14 100644 --- a/django_lostplaces/lostplaces/templates/place/place_detail.html +++ b/django_lostplaces/lostplaces/templates/place/place_detail.html @@ -14,8 +14,8 @@ {% block title %}{{place.name}}{% endblock %} {% block additional_menu_items %} -
  • Edit place
  • -
  • Delete place
  • +
  • {% translate 'Edit place' %}
  • +
  • {% translate 'Delete place' %}
  • {% endblock additional_menu_items %} {% block maincontent %} @@ -42,7 +42,7 @@
    -

    Map links

    +

    {% translate 'Map links' %}

    {% include 'partials/osm_map.html' with config=mapping_config%}
    -

    Photo albums

    +

    {% translate 'Photo albums' %}

    @@ -89,7 +89,7 @@
    -

    Images

    +

    {% translate 'Images' %}

      {% for place_image in place.placeimages.all %} diff --git a/django_lostplaces/lostplaces/templates/place/place_list.html b/django_lostplaces/lostplaces/templates/place/place_list.html index 5e336cf..c7d3803 100644 --- a/django_lostplaces/lostplaces/templates/place/place_list.html +++ b/django_lostplaces/lostplaces/templates/place/place_list.html @@ -6,13 +6,13 @@ {% endblock additional_head %} -{% block title %}Lost Places{% endblock %} +{% block title %}{% translate 'Lost Places' %}{% endblock %} {% block maincontent %} {% include 'partials/osm_map.html' with config=mapping_config %}
      -

      Listing our places

      +

      {% translate 'Listing our places' %}

        {% for place in place_list %}
      • diff --git a/django_lostplaces/lostplaces/templates/place/place_update.html b/django_lostplaces/lostplaces/templates/place/place_update.html index 150dbfd..9b6e1cc 100644 --- a/django_lostplaces/lostplaces/templates/place/place_update.html +++ b/django_lostplaces/lostplaces/templates/place/place_update.html @@ -1,12 +1,12 @@ {% extends 'global.html'%} {% load static %} -# {% block title %}Update place{% endblock %} +# {% block title %}{% translate 'Update place' %}{% endblock %} {% block maincontent %}
        - Update place + {% translate 'Update place' %} {% csrf_token %}
        diff --git a/django_lostplaces/lostplaces/templates/place_image/place_image_create.html b/django_lostplaces/lostplaces/templates/place_image/place_image_create.html index 4213cbd..5d7150e 100644 --- a/django_lostplaces/lostplaces/templates/place_image/place_image_create.html +++ b/django_lostplaces/lostplaces/templates/place_image/place_image_create.html @@ -3,7 +3,7 @@ {% block maincontent %}
        - Submit images to an place + {% translate 'Submit images to a place' %} {% csrf_token %}