Changeset 14929 in josm


Ignore:
Timestamp:
2019-03-25T09:33:03+01:00 (3 months ago)
Author:
GerdP
Message:

fix #17506: Display languages in alphabetical order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java

    r12846 r14929  
    77import java.util.ArrayList;
    88import java.util.Arrays;
     9import java.util.Comparator;
    910import java.util.List;
    1011import java.util.Locale;
     
    8485        LanguageComboBoxModel() {
    8586            data.add(0, null);
    86             data.addAll(Arrays.asList(I18n.getAvailableTranslations()));
     87            List<Locale> locales = Arrays.asList(I18n.getAvailableTranslations());
     88            locales.sort(Comparator.comparing(Locale::getDisplayLanguage));
     89            data.addAll(locales);
    8790        }
    8891
Note: See TracChangeset for help on using the changeset viewer.