Changeset 14642 in josm


Ignore:
Timestamp:
2019-01-05T00:41:57+01:00 (12 days ago)
Author:
simon04
Message:

LanguageInfo: add unit tests

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r12382 r14642  
    4141     */
    4242    public static String getWikiLanguagePrefix(LocaleType type) {
     43        return getWikiLanguagePrefix(Locale.getDefault(), type);
     44    }
     45
     46    static String getWikiLanguagePrefix(Locale locale, LocaleType type) {
    4347        if (type == LocaleType.ENGLISH)
    4448          return "";
    4549
    46         String code = getJOSMLocaleCode();
     50        String code = getJOSMLocaleCode(locale);
    4751        if (type == LocaleType.BASELANGUAGE) {
    4852            if (code.matches("[^_]+_[^_]+")) {
Note: See TracChangeset for help on using the changeset viewer.