Skip to content

Commit

Permalink
Merge pull request #498 from jimouwerkerk/develop
Browse files Browse the repository at this point in the history
Use same translation as django admin to translate the error message
  • Loading branch information
darklow committed Jun 22, 2016
2 parents 18b9ef5 + b482004 commit 3538dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suit/templates/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h4 class="italic-title">{% trans 'tools'|capfirst %}</h4>
<input type="hidden" name="_popup" value="1"/>{% endif %}
{% if errors %}
<div class="alert alert-error">
{% blocktrans count counter=errors|length %}Please correct the error below.{% plural %} Please correct the errors below.{% endblocktrans %}
{% if errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
{{ adminform.form.non_field_errors }}
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion suit/templates/admin/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

{% if cl.formset.errors %}
<div class="alert alert-error errornote">
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
{% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
</div>
{{ cl.formset.non_form_errors }}
{% endif %}
Expand Down

0 comments on commit 3538dad

Please sign in to comment.