Skip to content

Commit

Permalink
Fix translation not working in delete_confirmation.html
Browse files Browse the repository at this point in the history
Fix the translation strings used for the button. Otherwise, the translation won't work.
  • Loading branch information
jTiKey committed Feb 22, 2024
1 parent ef0f5a4 commit 2b91886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grappelli/templates/admin/delete_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ <h2>{% blocktrans with escaped_object=object %}Are you sure you want to delete t
<div class="grp-module grp-submit-row grp-fixed-footer">
<ul>
{% url opts|admin_urlname:'change' object.pk|admin_urlquote as object_url %}
<li class="grp-float-left"><a href="{% add_preserved_filters object_url %}" class="grp-button grp-cancel-link">{% trans "Cancel" %}</a></li>
<li><input type="submit" value="{% trans "Yes, I'm sure" %}" class="grp-button grp-default" /></li>
<li class="grp-float-left"><a href="{% add_preserved_filters object_url %}" class="grp-button grp-cancel-link">{% trans "No, take me back" %}</a></li>
<li><input type="submit" value="{% trans "Yes, Im sure" %}" class="grp-button grp-default" /></li>
</ul>
<input type="hidden" name="post" value="yes" />
{% if is_popup %}<input type="hidden" name="{{ is_popup_var }}" value="1" />{% endif %}
Expand Down

0 comments on commit 2b91886

Please sign in to comment.