Changeset 19043 in josm for trunk/src/org
- Timestamp:
- 2024-04-18T23:20:21+02:00 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r18510 r19043 378 378 static String setupJavaLocaleProviders() { 379 379 // Look up SPI providers first (for JosmDecimalFormatSymbolsProvider). 380 // Enable CLDR locale provider on Java 8 to get additional languages, such as Khmer.381 // https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr382 // FIXME: This must be updated after we switch to Java 9.383 // See https://docs.oracle.com/javase/9/docs/api/java/util/spi/LocaleServiceProvider.html384 380 try { 385 381 try { … … 388 384 I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider").close(); 389 385 // Don't call Utils.updateSystemProperty to avoid spurious log at startup 390 return System.setProperty("java.locale.providers", "SPI, JRE,CLDR");386 return System.setProperty("java.locale.providers", "SPI,CLDR"); 391 387 } catch (RuntimeException | IOException e) { 392 388 // Don't call Logging class, it may not be fully initialized yet … … 398 394 } 399 395 try { 400 return System.setProperty("java.locale.providers", " JRE,CLDR");396 return System.setProperty("java.locale.providers", "CLDR"); 401 397 } catch (SecurityException e) { 402 398 // Don't call Logging class, it may not be fully initialized yet
Note:
See TracChangeset
for help on using the changeset viewer.