Changeset 24166 in osm for applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OsmUtils.java
- Timestamp:
- 2010-11-09T00:36:45+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OsmUtils.java
r24130 r24166 15 15 16 16 import java.util.List; 17 import java.util.Locale; 17 18 18 19 import org.openstreetmap.josm.data.coor.LatLon; … … 29 30 public class OsmUtils { 30 31 private OsmUtils() {} 32 33 private static String cachedLocale = null; 31 34 32 35 /** … … 146 149 return false; 147 150 } 151 152 /** 153 * Gets the locale code as string. 154 * 155 * @return the locale 156 */ 157 public static String getLocale() { 158 // Check if user could prefer imperial system 159 if (cachedLocale == null) { 160 Locale l = Locale.getDefault(); 161 cachedLocale = l.toString(); 162 } 163 return cachedLocale; 164 } 148 165 149 166 private static void applyDerivedValue(OSMAddress address, Way w, String tag) {
Note:
See TracChangeset
for help on using the changeset viewer.
