Skip to content
Snippets Groups Projects
Verified Commit 7219a0fa authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add some i18n work

parent 661c0c22
No related branches found
No related tags found
1 merge request!31Biscuit merge. Closes #53.
{% extends 'core/base.html' %} {% extends 'core/base.html' %}
{% load i18n %}
{% block content %} {% block content %}
<div class="row nomargin"> <div class="row nomargin">
<div class="col m12 s12 l6"> <div class="col m12 s12 l6">
<h4> <h4>
Mein Plan <i>{{ el }}</i> {% trans "My plan" %} <i>{{ el }}</i>
<span class="badge new primary-color ">SMART PLAN</span> <span class="badge new primary-color ">{% trans "SMART PLAN" %}</span>
</h4> </h4>
<a class="btn-flat waves-effect waves-light" href="{% url "timetable_smart_plan" raw_type id %}">Wochenplan <a class="btn-flat waves-effect waves-light" href="{% url "timetable_smart_plan" raw_type id %}">
anzeigen</a> {% trans "Show week timetable" %}
</a>
</div> </div>
</div> </div>
......
{% load i18n %}
{% if not sub.sub.is_event %} {% if not sub.sub.is_event %}
{% if sub.sub.type == 3 %} {% if sub.sub.type == 3 %}
<strong>Aufsicht</strong> <strong>{% trans "Supervision" %}</strong>
{% elif not sub.lesson_period.lesson.subject and not sub.subject %} {% elif not sub.lesson_period.lesson.subject and not sub.subject %}
{% elif sub.sub.type == 1 or sub.sub.type == 2 %} {% elif sub.sub.type == 1 or sub.sub.type == 2 %}
<span data-position="bottom" class="tooltipped" data-tooltip="{{ sub.lesson_period.lesson.subject.name }}"> <span data-position="bottom" class="tooltipped" data-tooltip="{{ sub.lesson_period.lesson.subject.name }}">
......
{% extends 'core/base.html' %} {% extends 'core/base.html' %}
{% load data_helpers static %} {% load data_helpers static i18n %}
{% block extra_head %} {% block extra_head %}
<link rel="stylesheet" href="{% static 'css/chronos/timetable.css' %}"> <link rel="stylesheet" href="{% static 'css/chronos/timetable.css' %}">
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
<div class="row no-margin"> <div class="row no-margin">
<div class="col s8 m6 l8 xl9"> <div class="col s8 m6 l8 xl9">
<h4> <h4>
Stundenplan <i>{{ el }}</i> {% trans "Timetable" %} <i>{{ el }}</i>
</h4> </h4>
{# Show class teacher and deputy class teacher #} {# Show class teacher and deputy class teacher #}
{% if type == "group" and el.owners.all %} {% if type == "group" and el.owners.all %}
<h5>Klassenlehrkräfte: <h5>{% trans "Class teachers:" %}
{% for teacher in el.owners.all %} {% for teacher in el.owners.all %}
<span data-position="bottom" class="tooltipped" <span data-position="bottom" class="tooltipped"
data-tooltip="{{ teacher }}"> data-tooltip="{{ teacher }}">
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
{# Show if smart #} {# Show if smart #}
{# Toggle button to regular and smart plan badge #} {# Toggle button to regular and smart plan badge #}
<div class="row s12 m6 left"> <div class="row s12 m6 left">
<span class="badge new primary-color left smart-plan-badge">SMART PLAN</span> <span class="badge new primary-color left smart-plan-badge">{% trans "SMART PLAN" %}</span>
<a class="waves-effect waves-light btn-flat no-print" style="padding-left: 3px; padding-right: 3px;" <a class="waves-effect waves-light btn-flat no-print" style="padding-left: 3px; padding-right: 3px;"
href="{% url "timetable_regular" type pk "regular" %}"> href="{% url "timetable_regular" type pk "regular" %}">
<i class="material-icons left">slideshow</i> <i class="material-icons left">slideshow</i>
REGELPLAN ANZEIGEN {% trans "Show regular timetable" %}
</a> </a>
</div> </div>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<select id="calendar-week-1"> <select id="calendar-week-1">
{% for week in weeks %} {% for week in weeks %}
<option value="{{ week.week }}" {% if week == wanted_week %} <option value="{{ week.week }}" {% if week == wanted_week %}
selected {% endif %}>KW {{ week.week }} ({{ week.0|date:"j.n" }}–{{ week.6|date:"j.n" }}) selected {% endif %}>{% trans "CW" %} {{ week.week }} ({{ week.0|date:"j.n" }}–{{ week.6|date:"j.n" }})
</option> </option>
{% endfor %} {% endfor %}
</select> </select>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<select id="calendar-week-2"> <select id="calendar-week-2">
{% for week in weeks %} {% for week in weeks %}
<option value="{{ week.week }}" {% if week == wanted_week %} <option value="{{ week.week }}" {% if week == wanted_week %}
selected {% endif %}>KW {{ week.week }} ({{ week.0|date:"j.n.Y" }}–{{ week.6|date:"j.n.Y" }}) selected {% endif %}>{% trans "CW" %} {{ week.week }} ({{ week.0|date:"j.n.Y" }}–{{ week.6|date:"j.n.Y" }})
</option> </option>
{% endfor %} {% endfor %}
</select> </select>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<select id="calendar-week-3"> <select id="calendar-week-3">
{% for week in weeks %} {% for week in weeks %}
<option value="{{ week.week }}" {% if week == wanted_week %} <option value="{{ week.week }}" {% if week == wanted_week %}
selected {% endif %}>KW {{ week.week }} ({{ week.0|date:"j.n" }}–{{ week.6|date:"j.n.Y" }}) selected {% endif %}>{% trans "CW" %} {{ week.week }} ({{ week.0|date:"j.n" }}–{{ week.6|date:"j.n.Y" }})
</option> </option>
{% endfor %} {% endfor %}
</select> </select>
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<a class="waves-effect waves-light btn-flat no-print" <a class="waves-effect waves-light btn-flat no-print"
href="{% url "timetable" type pk %}"> href="{% url "timetable" type pk %}">
<i class="material-icons left">slideshow</i> <i class="material-icons left">slideshow</i>
SMART PLAN ANZEIGEN {% trans "Show SMART PLAN" %}
</a> </a>
{% endif %} {% endif %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment