Changeset 17811 in josm for trunk/src


Ignore:
Timestamp:
2021-04-21T16:24:40+02:00 (4 years ago)
Author:
GerdP
Message:

fix #20784: Can`t download data by Overpass Query when activate Arabic translation

  • use Locale.English when converting numbers to readable strings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java

    r17787 r17811  
    306306        final PrimitiveId osmId = searchName(area).getOsmId();
    307307        Logging.debug("Area ''{0}'' resolved to {1}", area, osmId);
    308         return String.format("area(%d)", osmId.getUniqueId() + idOffset.get(osmId.getType()));
     308        return String.format(Locale.ENGLISH, "area(%d)", osmId.getUniqueId() + idOffset.get(osmId.getType()));
    309309    }
    310310
     
    321321    static String geocodeId(String area) throws IOException {
    322322        PrimitiveId osmId = searchName(area).getOsmId();
    323         return String.format("%s(%d)", osmId.getType().getAPIName(), osmId.getUniqueId());
     323        return String.format(Locale.ENGLISH, "%s(%d)", osmId.getType().getAPIName(), osmId.getUniqueId());
    324324    }
    325325
Note: See TracChangeset for help on using the changeset viewer.