mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2954 #comment Port 4.1 language selection #time 1h
This commit is contained in:
@@ -736,8 +736,12 @@
|
|||||||
<h1>{{ 'Language' | trans }} : {{ app['locale'] }}</h1>
|
<h1>{{ 'Language' | trans }} : {{ app['locale'] }}</h1>
|
||||||
<label class="inline" for="language">
|
<label class="inline" for="language">
|
||||||
<select onchange="window.location = $(this).val();" id="language">
|
<select onchange="window.location = $(this).val();" id="language">
|
||||||
{% for code, language in app.getAvailableLanguages() if code != app['locale'] %}
|
{% for code, language in app.getAvailableLanguages() %}
|
||||||
|
{% if code == app['locale'] %}
|
||||||
|
<option selected="selected" disabled="disabled">{{ language }}</option>
|
||||||
|
{% else %}
|
||||||
<option value="{{ path('set_locale', {'locale' : code, 'redirect' : '/prod' }) }}"><a href="{{ path('set_locale', {'locale' : code, 'redirect' : '/prod' }) }}" data-country-code="{{ code }}">{{ language }}</a></option>
|
<option value="{{ path('set_locale', {'locale' : code, 'redirect' : '/prod' }) }}"><a href="{{ path('set_locale', {'locale' : code, 'redirect' : '/prod' }) }}" data-country-code="{{ code }}">{{ language }}</a></option>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user