Skip to content

Commit

Permalink
Make "add_modals" button labels translatable (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbanety authored and rhukster committed Mar 18, 2018
1 parent fa56b51 commit a21f1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/grav/templates/pages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

{% for key, add_modal in config.plugins.admin.add_modals %}
{% if add_modal.show_in|defined('bar') == 'bar' %}
<a class="button {{ add_modal.link_classes }}" href="#modal-add_modal-{{ key }}" data-remodal-target="modal-add_modal-{{ key }}"><i class="fa fa-plus"></i> {{ add_modal.label }}</a>
<a class="button {{ add_modal.link_classes }}" href="#modal-add_modal-{{ key }}" data-remodal-target="modal-add_modal-{{ key }}"><i class="fa fa-plus"></i> {{ add_modal.label|tu }}</a>
{% endif %}
{% endfor %}

Expand All @@ -141,7 +141,7 @@
{% endif %}
{% for key, add_modal in config.plugins.admin.add_modals %}
{% if add_modal.show_in|defined('bar') == 'dropdown' %}
<li><a class="button {{ add_modal.link_classes }}" href="#modal-add_modal-{{ key }}" data-remodal-target="modal-add_modal-{{ key }}">{{ add_modal.label }}</a></li>
<li><a class="button {{ add_modal.link_classes }}" href="#modal-add_modal-{{ key }}" data-remodal-target="modal-add_modal-{{ key }}">{{ add_modal.label|tu }}</a></li>
{% endif %}
{% endfor %}
</ul>
Expand Down

0 comments on commit a21f1c1

Please sign in to comment.