mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-12 00:06:04 +01:00
Make "add_modals" button labels translatable (#1388)
This commit is contained in:
committed by
Andy Miller
parent
fa56b51c29
commit
a21f1c110e
@@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
{% for key, add_modal in config.plugins.admin.add_modals %}
|
{% for key, add_modal in config.plugins.admin.add_modals %}
|
||||||
{% if add_modal.show_in|defined('bar') == 'bar' %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for key, add_modal in config.plugins.admin.add_modals %}
|
{% for key, add_modal in config.plugins.admin.add_modals %}
|
||||||
{% if add_modal.show_in|defined('bar') == 'dropdown' %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user