Add missing blocktrans to InlinePanel's add-button

This commit is contained in:
Jannis 2015-12-14 11:58:00 +01:00 committed by Matt Westcott
parent aaed92f301
commit 42e1317a4e
3 changed files with 5 additions and 1 deletions

View file

@ -91,6 +91,7 @@ Contributors
* Adon Metcalfe
* rayrayndwiga
* Rich Atkinson
* jnns
Translators

View file

@ -85,6 +85,7 @@ Bug fixes
* Changed verbose names to start with lower case where necessary (Maris Serzans)
* Invalid images no longer crash the image listing (Maris Serzans)
* ``MenuItem`` ``url`` parameter can now take a lazy URL (Adon Metcalfe, rayrayndwiga)
* Added missing translation tag to InlinePanel 'Add' button (jnns)
Upgrade considerations

View file

@ -1,3 +1,4 @@
{% load i18n %}
{% load wagtailadmin_tags %}
{{ self.formset.management_form }}
@ -23,5 +24,6 @@
</script>
<p class="add">
<a class="button bicolor icon icon-plus" id="id_{{ self.formset.prefix }}-ADD" value="Add">Add {{ self.heading|lower }}</a>
<a class="button bicolor icon icon-plus" id="id_{{ self.formset.prefix }}-ADD" value="Add">
{% blocktrans with heading=self.heading|lower %}Add {{ heading }}{% endblocktrans %}</a>
</p>