translateable buttons in editor

This commit is contained in:
Laura Klünder 2017-05-16 17:33:08 +02:00
parent 84dc7986a9
commit da8d29766c
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,10 @@
{% load bootstrap3 %}
{% load i18n %}
<a class="btn btn-default btn-sm pull-right" accesskey="n" href="{% url 'editor.section.create' %}">{% trans 'New Section' %}</a>
<a class="btn btn-default btn-sm pull-right" accesskey="n" href="{% url 'editor.section.create' %}">
{% trans 'Section' as model_title %}
{% blocktrans %}New {{ model_title }}{% endblocktrans %}
</a>
<h3>{% trans 'Sections' %}</h3>
<div class="list-group">
{% for s in sections %}

View file

@ -2,7 +2,10 @@
{% load i18n %}
{% include 'editor/fragment_sections.html' %}
<a class="btn btn-default btn-sm pull-right" accesskey="e" href="{% url 'editor.section.edit' pk=section.id %}">{% trans 'Edit Section' %}</a>
<a class="btn btn-default btn-sm pull-right" accesskey="e" href="{% url 'editor.section.edit' pk=section.id %}">
{% trans 'Section' as model_title %}
{% blocktrans %}Edit {{ model_title }}{% endblocktrans %}
</a>
<h3>{{ section.title }}</h3>
<p>
<a href="{% url 'editor.index' %}">&laquo; {% trans 'back to overview' %}</a>