Added translation tags.

This commit is contained in:
Marcus Scholz 2020-10-01 22:56:44 +02:00
parent e0a0fa29d2
commit 24c2ac8347
8 changed files with 26 additions and 26 deletions

View File

@ -1,19 +1,19 @@
<header class="LP-TextSection__Headline">
<h1 class="LP-Headline">Start</h1>
<h1 class="LP-Headline">{% translate 'Start' %}</h1>
</header>
<div class="LP-TextSection__Text">
<p class="LP-Paragraph">Welcome to our Urban Exploration community catalogue,
<p class="LP-Paragraph">{% translate 'Welcome to our Urban Exploration community catalogue,' %}
{% if user.is_authenticated %}
{{ user.username }}
{% else %}
explorer
{% translate 'explorer' %}
{% endif %}
!
</p>
<p class="LP-Paragraph">
We strictly follow our
<a class="LP-Link" href="{% url 'flatpage' slug='codex' %}"><span class="LP-Link__Text">UrBex codex</span></a>
and expect you to do so, too.
{% translate 'We strictly follow our' %}
<a class="LP-Link" href="{% url 'flatpage' slug='codex' %}"><span class="LP-Link__Text">{% translate 'UrBex codex' %}</span></a>
{% translate 'and expect you to do so, too.' %}'
</p>
</div>

View File

@ -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 %}
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span
class="LP-Link__Text">Edit place</span></a></li>
class="LP-Link__Text">{% translate 'Edit place' %}</span></a></li>
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span
class="LP-Link__Text">Delete place</span></a></li>
class="LP-Link__Text">{% translate 'Delete place' %}</span></a></li>
{% endblock additional_menu_items %}
{% block maincontent %}
<form class="LP-Form" method="POST">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Submit a photo album for {{place.name}}</legend>
<legend class="LP-Form__Legend">{% translate 'Submit a photo album for' %}% {{place.name}}</legend>
{% csrf_token %}
<div class="LP-Form__Composition">
<div class="LP-Form__Field">

View File

@ -1,12 +1,12 @@
{% extends 'global.html'%}
{% load static %}
# {% block title %}Place erstellen{% endblock %}
# {% block title %}{% translate 'Create Place' %}{% endblock %}
{% block maincontent %}
<form class="LP-Form" method="POST" enctype="multipart/form-data">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Create Place</legend>
<legend class="LP-Form__Legend">{% translate 'Create Place' %}</legend>
{% csrf_token %}
<div class="LP-Form__Composition LP-Form__Composition--breakable">
<div class="LP-Form__Field">

View File

@ -1,17 +1,17 @@
{% extends 'global.html'%}
{% load static %}
{% block title %}Lost Place Deletion{% endblock %}
{% block title %}{% tranlate 'Lost Place Deletion' %}{% endblock %}
{% block maincontent %}
<form class="LP-Form" method="POST">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Delete place</legend>
<legend class="LP-Form__Legend">{% tranlate 'Delete place' %}</legend>
{% csrf_token %}
<div class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__InfoText">
<p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"? </p>
<p class="LP-Paragraph">{% tranlate 'Are you sure you want to delete' %} "{{place.name}}"?</p>
</div>
</div>

View File

@ -14,8 +14,8 @@
{% block title %}{{place.name}}{% endblock %}
{% block additional_menu_items %}
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Edit place</span></a></li>
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Delete place</span></a></li>
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">{% translate 'Edit place' %}</span></a></li>
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">{% translate 'Delete place' %}</span></a></li>
{% endblock additional_menu_items %}
{% block maincontent %}
@ -42,7 +42,7 @@
</section>
<section class="LP-Section">
<h1 class="LP-Headline">Map links</h1>
<h1 class="LP-Headline">{% translate 'Map links' %}</h1>
{% include 'partials/osm_map.html' with config=mapping_config%}
<div class="LP-LinkList">
<ul class="LP-LinkList__Container">
@ -54,7 +54,7 @@
</section>
<section class=" LP-Section">
<h1 class="LP-Headline">Photo albums</h1>
<h1 class="LP-Headline">{% translate 'Photo albums' %}</h1>
<div class="LP-LinkList">
<ul class="LP-LinkList__Container">
{% for photo_album in place.photoalbums.all %}
@ -80,7 +80,7 @@
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
</g>
</svg>
<span class="RV-Iconized__Text">Fotoalbum hinzufügen</span>
<span class="RV-Iconized__Text">{% translate 'Add photo album' %}</span>
</div>
</a>
</li>
@ -89,7 +89,7 @@
</section>
<section class="LP-Section">
<h1 class="LP-Headline">Images</h1>
<h1 class="LP-Headline">{% translate 'Images' %}</h1>
<div class="LP-ImageGrid">
<ul class="LP-ImageGrid__Container">
{% for place_image in place.placeimages.all %}

View File

@ -6,13 +6,13 @@
<script src="{% static 'maps/ol.js' %}"></script>
{% 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 %}
<div class="LP-PlaceList">
<h1 class="LP-Headline">Listing our places</h1>
<h1 class="LP-Headline">{% translate 'Listing our places' %}</h1>
<ul class="LP-PlaceList__List">
{% for place in place_list %}
<li class="LP-PlaceList__Item">

View File

@ -1,12 +1,12 @@
{% extends 'global.html'%}
{% load static %}
# {% block title %}Update place{% endblock %}
# {% block title %}{% translate 'Update place' %}{% endblock %}
{% block maincontent %}
<form class="LP-Form" method="POST" enctype="multipart/form-data">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Update place</legend>
<legend class="LP-Form__Legend">{% translate 'Update place' %}</legend>
{% csrf_token %}
<div class="LP-Form__Composition LP-Form__Composition--breakable">
<div class="LP-Form__Field">

View File

@ -3,7 +3,7 @@
{% block maincontent %}
<form class="LP-Form" method="POST" enctype="multipart/form-data">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Submit images to an place</legend>
<legend class="LP-Form__Legend">{% translate 'Submit images to a place' %}</legend>
{% csrf_token %}
<div class="LP-Form__Composition">