i18n: Use language full name instead of ISO code

Fixes #851
This commit is contained in:
Samantaz Fox 2021-11-08 23:04:05 +01:00
parent 9966c21c6b
commit 301444563b
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -121,8 +121,8 @@
<div class="pure-control-group">
<label for="locale"><%= translate(locale, "preferences_locale_label") %></label>
<select name="locale" id="locale">
<% LOCALES.each_key do |option| %>
<option value="<%= option %>" <% if preferences.locale == option %> selected <% end %>><%= option %></option>
<% LOCALES_LIST.each do |iso_name, full_name| %>
<option value="<%= iso_name %>" <% if preferences.locale == iso_name %> selected <% end %>><%= HTML.escape(full_name) %></option>
<% end %>
</select>
</div>