From da8d29766ce9a52c2ddc43540316499547c15811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 16 May 2017 17:33:08 +0200 Subject: [PATCH] translateable buttons in editor --- src/c3nav/editor/templates/editor/index.html | 5 ++++- src/c3nav/editor/templates/editor/section.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/c3nav/editor/templates/editor/index.html b/src/c3nav/editor/templates/editor/index.html index 6129bb88..2eb4866d 100644 --- a/src/c3nav/editor/templates/editor/index.html +++ b/src/c3nav/editor/templates/editor/index.html @@ -1,7 +1,10 @@ {% load bootstrap3 %} {% load i18n %} -{% trans 'New Section' %} + + {% trans 'Section' as model_title %} + {% blocktrans %}New {{ model_title }}{% endblocktrans %} +

{% trans 'Sections' %}

{% for s in sections %} diff --git a/src/c3nav/editor/templates/editor/section.html b/src/c3nav/editor/templates/editor/section.html index beb3ce16..d9ff149b 100644 --- a/src/c3nav/editor/templates/editor/section.html +++ b/src/c3nav/editor/templates/editor/section.html @@ -2,7 +2,10 @@ {% load i18n %} {% include 'editor/fragment_sections.html' %} -{% trans 'Edit Section' %} + + {% trans 'Section' as model_title %} + {% blocktrans %}Edit {{ model_title }}{% endblocktrans %} +

{{ section.title }}

« {% trans 'back to overview' %}