|
@@ -44,7 +44,7 @@
|
|
|
{{ preferences_item_header(language_info, language_label, rtl) }}
|
|
|
<select class="form-control" name='language'>
|
|
|
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
|
|
|
- {% for lang_id,lang_name,country_name in language_codes %}
|
|
|
+ {% for lang_id,lang_name,country_name in language_codes | sort(attribute=1) %}
|
|
|
<option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
|
|
|
{% endfor %}
|
|
|
</select>
|
|
@@ -54,7 +54,7 @@
|
|
|
{% set locale_info = _('Change the language of the layout') %}
|
|
|
{{ preferences_item_header(locale_info, locale_label, rtl) }}
|
|
|
<select class="form-control" name='locale'>
|
|
|
- {% for locale_id,locale_name in locales.items() %}
|
|
|
+ {% for locale_id,locale_name in locales.items() | sort %}
|
|
|
<option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
|
|
|
{% endfor %}
|
|
|
</select>
|