subDesTagesMitExtraKaese há 2 anos atrás
pai
commit
17d4ac32f7
2 ficheiros alterados com 14 adições e 12 exclusões
  1. 10 9
      templates/gps_logger/index.html
  2. 4 3
      templates/gps_logger/upload.html

+ 10 - 9
templates/gps_logger/index.html

@@ -1,6 +1,7 @@
 
 {% extends "homepage/base.html" %}
 {% load static %}
+{% load i18n %}
 
 {% block title %}GPS Logging{% endblock %}
 {% block header %}GPS Logging{% endblock %}
@@ -8,12 +9,12 @@
 {% block status %}
 {% if user.is_authenticated %}
 <p style="text-align:center">
-  Hi {% firstof user.first_name user.username %}!<br/>
-  <a href="{% url 'logout' %}" class="link">Logout</a>
+  {% trans "Hello" %} {% firstof user.first_name user.username %}!<br/>
+  <a href="{% url 'logout' %}" class="link">{% trans "Logout" %}</a>
 </p>
 {% else %}
 <p style="text-align:center">
-  <a href="{% url 'login' %}" class="link">Login</a>
+  <a href="{% url 'login' %}" class="link">{% trans "Login" %}</a>
 </p>
 {% endif %}
 {% endblock %}
@@ -43,13 +44,13 @@
     <div id="overview" class="demo-placeholder"></div>
   </div>
   <p></p>
-  <p>Zoom to: 
-    <button id="whole">All</button>
-    <button id="track">Track</button>
+  <p>{% trans "Zoom to:" %} 
+    <button id="whole">{% trans "All" %}</button>
+    <button id="track">{% trans "Track" %}</button>
   </p>
-  <p>Move: 
-    <button id="left">Left</button>
-    <button id="right">Right</button>
+  <p>{% trans "Move:" %} 
+    <button id="left">{% trans "Left" %}</button>
+    <button id="right">{% trans "Right" %}</button>
   </p> 
   <ul id="tracks">
   </ul>

+ 4 - 3
templates/gps_logger/upload.html

@@ -1,6 +1,7 @@
 
 {% extends "homepage/base.html" %}
 {% load static %}
+{% load i18n %}
 
 {% block title %}GPS Logging{% endblock %}
 {% block header %}GPS Logging{% endblock %}
@@ -8,12 +9,12 @@
 {% block status %}
 {% if user.is_authenticated %}
 <p style="text-align:center">
-  Hi {% firstof user.first_name user.username %}!<br/>
-  <a href="{% url 'logout' %}" class="link">Logout</a>
+  {% trans "Hello" %} {% firstof user.first_name user.username %}!<br/>
+  <a href="{% url 'logout' %}" class="link">{% trans "Logout" %}</a>
 </p>
 {% else %}
 <p style="text-align:center">
-  <a href="{% url 'login' %}" class="link">Login</a>
+  <a href="{% url 'login' %}" class="link">{% trans "Login" %}</a>
 </p>
 {% endif %}
 {% endblock %}