| A swing map localization does not work, thought property files are packed in the jar file. LocaleUtils.setLocale(Locale.ITALIAN); or LocaleUtils.setLocale(Locale.GERMAN); fails with de is not currently supported or is not currently supported The reason is that a jarPath like path = "jar:/home/ber/.m2/repository/org/geotools/gt-swing/14.3/gt-swing-14.3.jar!/org/geotools/swing/locale/PropertiesFileFinder.class" does not result into a stream that discovers jarEntry(s) in PropertiesFileFinder.getAsJarInputStream(). The attached patch solves the situation by a best effort. (There does not seem to be a canocial way to get the file for a jar file, see http://stackoverflow.com/questions/15359702/get-location-of-jar-file for some examples that are hard to handle) The application I saw the issue with is https://github.com/Intevation/downloadclient/issues/39 The code in 15.0 looked similiar, so it is likely to also fail, maybe my patch can help there, too. Best Regards, Bernhard |