Changeset 5510 in josm for trunk/src/org


Ignore:
Timestamp:
2012-09-13T10:58:37+02:00 (12 years ago)
Author:
stoecker
Message:

fix #8059 - fix preset loading for tr

File:
1 edited

Legend:

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

    r5135 r5510  
    1212import java.util.Iterator;
    1313import java.util.LinkedList;
     14import java.util.Locale;
    1415import java.util.Map;
    1516import java.util.Stack;
     
    189190                    if (fieldName.startsWith(lang)) {
    190191                        int l = lang.length();
    191                         fieldName = "set" + fieldName.substring(l, l + 1).toUpperCase() + fieldName.substring(l + 1);
     192                        fieldName = "set" + fieldName.substring(l, l + 1).toUpperCase(Locale.ENGLISH) + fieldName.substring(l + 1);
    192193                    } else {
    193                         fieldName = "set" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1);
     194                        fieldName = "set" + fieldName.substring(0, 1).toUpperCase(Locale.ENGLISH) + fieldName.substring(1);
    194195                    }
    195196                    Method m = entry.getMethod(fieldName);
Note: See TracChangeset for help on using the changeset viewer.