|
@@ -64,23 +64,21 @@ file that was distributed with this source code.
|
|
|
{% endfor %}
|
|
|
{% endblock %}
|
|
|
|
|
|
- {% block javascripts_sonata_l10n %}
|
|
|
- {% set locale = app.request.locale %}
|
|
|
- {# localize moment #}
|
|
|
- {% if locale[:2] != 'en' %}
|
|
|
- <script src="{{ asset('bundles/sonatacore/vendor/moment/locale/' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script>
|
|
|
- {% endif %}
|
|
|
+ {% set locale = app.request.locale %}
|
|
|
+ {# localize moment #}
|
|
|
+ {% if locale[:2] != 'en' %}
|
|
|
+ <script src="{{ asset('bundles/sonatacore/vendor/moment/locale/' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script>
|
|
|
+ {% endif %}
|
|
|
|
|
|
- {# localize select2 #}
|
|
|
- {% if sonata_admin.adminPool.getOption('use_select2') %}
|
|
|
- {% if locale == 'pt' %}{% set locale = 'pt_PT' %}{% endif %}
|
|
|
+ {# localize select2 #}
|
|
|
+ {% if sonata_admin.adminPool.getOption('use_select2') %}
|
|
|
+ {% if locale == 'pt' %}{% set locale = 'pt_PT' %}{% endif %}
|
|
|
|
|
|
- {# omit default EN locale #}
|
|
|
- {% if locale[:2] != 'en' %}
|
|
|
- <script src="{{ asset('bundles/sonatacore/vendor/select2/select2_locale_' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script>
|
|
|
- {% endif %}
|
|
|
+ {# omit default EN locale #}
|
|
|
+ {% if locale[:2] != 'en' %}
|
|
|
+ <script src="{{ asset('bundles/sonatacore/vendor/select2/select2_locale_' ~ locale|replace({'_':'-'}) ~ '.js') }}"></script>
|
|
|
{% endif %}
|
|
|
- {% endblock %}
|
|
|
+ {% endif %}
|
|
|
{% endblock %}
|
|
|
|
|
|
<title>
|